Skip to content

Commit

Permalink
fix(wms): code formatting by Black
Browse files Browse the repository at this point in the history
  • Loading branch information
michmx authored and fstagni committed Aug 8, 2024
1 parent a72f814 commit e445469
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -512,16 +512,16 @@ def __kill_delete_jobs(self, jobIDList, right):
deleteJobList = []
# Get the jobs allowed to transition to the Killed state
filterRes = JobStatus.filterJobStateTransition(validJobList, JobStatus.KILLED)
if not filterRes['OK']:
if not filterRes["OK"]:
return filterRes
killJobList.extend(filterRes['Value'])
killJobList.extend(filterRes["Value"])

if not right == RIGHT_KILL:
# Get the jobs allowed to transition to the Deleted state
filterRes = JobStatus.filterJobStateTransition(validJobList, JobStatus.DELETED)
if not filterRes['OK']:
if not filterRes["OK"]:
return filterRes
deleteJobList.extend(filterRes['Value'])
deleteJobList.extend(filterRes["Value"])

# Look for jobs that are in the Staging state to send kill signal to the stager
result = self.jobDB.getJobsAttributes(killJobList, ["Status"])
Expand Down

0 comments on commit e445469

Please sign in to comment.