Skip to content

Commit

Permalink
Merge pull request #12215 from amaltaro/fix-12213-wma237
Browse files Browse the repository at this point in the history
Fix comparison of task thresholds in ResourceControlUpdater - wmagent branch
  • Loading branch information
amaltaro authored Dec 30, 2024
2 parents 0634705 + 700ace2 commit 90c99db
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ def checkTaskSlotsChanges(self, siteName, CPUBound, IOBound):
updateIO, updateCPU = False, False
# if either CPU or IO bound thresholds are different, update local db
for item in siteTaskSlots:
if item['task_type'] in self.tasksCPU and siteTaskSlots[0]['task_pending_slots'] != taskCPUPending:
if item['task_type'] in self.tasksCPU and item['task_pending_slots'] != taskCPUPending:
updateCPU = True
elif item['task_type'] in self.tasksIO and siteTaskSlots[0]['task_pending_slots'] != taskIOPending:
elif item['task_type'] in self.tasksIO and item['task_pending_slots'] != taskIOPending:
updateIO = True

if updateCPU:
Expand Down

0 comments on commit 90c99db

Please sign in to comment.