Skip to content

Commit 7431a4b

Browse files
committed
fix: use directly the DB instead of going through the service
1 parent f6d1af3 commit 7431a4b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/DIRAC/WorkloadManagementSystem/Service/JobManagerHandler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from DIRAC.Core.Utilities.JEncode import strToIntDict
2222
from DIRAC.Core.Utilities.ObjectLoader import ObjectLoader
2323
from DIRAC.FrameworkSystem.Client.ProxyManagerClient import gProxyManager
24-
from DIRAC.StorageManagementSystem.Client.StorageManagerClient import StorageManagerClient
24+
from DIRAC.StorageManagementSystem.DB.StorageManagementDB import StorageManagementDB
2525
from DIRAC.WorkloadManagementSystem.Client import JobStatus
2626
from DIRAC.WorkloadManagementSystem.Client.JobStatus import filterJobStateTransition
2727
from DIRAC.WorkloadManagementSystem.Service.JobPolicy import (
@@ -547,9 +547,9 @@ def _kill_delete_jobs(self, jobIDList, right, force=False):
547547
badIDs.append(jobID)
548548

549549
if stagingJobList:
550-
stagerClient = StorageManagerClient()
550+
stagerDB = StorageManagementDB()
551551
self.log.info("Going to send killing signal to stager as well!")
552-
result = stagerClient.killTasksBySourceTaskID(stagingJobList)
552+
result = stagerDB.killTasksBySourceTaskID(stagingJobList)
553553
if not result["OK"]:
554554
self.log.warn("Failed to kill some Stager tasks", result["Message"])
555555

0 commit comments

Comments
 (0)