Skip to content

Commit c94e03c

Browse files
committed
fix: use directly the DB instead of going through the service
1 parent 1532612 commit c94e03c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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 (
@@ -537,9 +537,9 @@ def _kill_delete_jobs(self, jobIDList, right, force=False):
537537
badIDs.append(jobID)
538538

539539
if stagingJobList:
540-
stagerClient = StorageManagerClient()
540+
stagerDB = StorageManagementDB()
541541
self.log.info("Going to send killing signal to stager as well!")
542-
result = stagerClient.killTasksBySourceTaskID(stagingJobList)
542+
result = stagerDB.killTasksBySourceTaskID(stagingJobList)
543543
if not result["OK"]:
544544
self.log.warn("Failed to kill some Stager tasks", result["Message"])
545545

0 commit comments

Comments
 (0)