@@ -632,7 +632,7 @@ def __removeRequests(self, requestIDs):
632
632
return S_OK ()
633
633
634
634
def __removeWMSTasks (self , transJobIDs ):
635
- """wipe out jobs and their requests from the system
635
+ """delete jobs (mark their status as "JobStatus.DELETED") and their requests from the system
636
636
637
637
:param self: self reference
638
638
:param list trasnJobIDs: job IDs
@@ -654,26 +654,26 @@ def __removeWMSTasks(self, transJobIDs):
654
654
self .log .error ("Failed to kill jobs" , "(n=%d)" % len (res ["FailedJobIDs" ]))
655
655
allRemove = False
656
656
657
- res = self .wmsClient .removeJob (jobList )
657
+ res = self .wmsClient .deleteJob (jobList )
658
658
if res ["OK" ]:
659
- self .log .info ("Successfully removed jobs from WMS" , "(n=%d)" % len (jobList ))
659
+ self .log .info ("Successfully deleted jobs from WMS" , "(n=%d)" % len (jobList ))
660
660
elif ("InvalidJobIDs" in res ) and ("NonauthorizedJobIDs" not in res ) and ("FailedJobIDs" not in res ):
661
661
self .log .info ("Found jobs which did not exist in the WMS" , "(n=%d)" % len (res ["InvalidJobIDs" ]))
662
662
elif "NonauthorizedJobIDs" in res :
663
663
self .log .error (
664
- "Failed to remove jobs because not authorized" , "(n=%d)" % len (res ["NonauthorizedJobIDs" ])
664
+ "Failed to delete jobs because not authorized" , "(n=%d)" % len (res ["NonauthorizedJobIDs" ])
665
665
)
666
666
allRemove = False
667
667
elif "FailedJobIDs" in res :
668
- self .log .error ("Failed to remove jobs" , "(n=%d)" % len (res ["FailedJobIDs" ]))
668
+ self .log .error ("Failed to delete jobs" , "(n=%d)" % len (res ["FailedJobIDs" ]))
669
669
allRemove = False
670
670
671
671
if not allRemove :
672
- return S_ERROR ("Failed to remove all remnants from WMS" )
673
- self .log .info ("Successfully removed all tasks from the WMS" )
672
+ return S_ERROR ("Failed to delete all remnants from WMS" )
673
+ self .log .info ("Successfully deleted all tasks from the WMS" )
674
674
675
675
if not jobIDs :
676
- self .log .info ("JobIDs not present, unable to remove asociated requests." )
676
+ self .log .info ("JobIDs not present, unable to delete associated requests." )
677
677
return S_OK ()
678
678
679
679
failed = 0
0 commit comments