Skip to content

Commit

Permalink
Merge pull request #12248 from todor-ivanov/bugfix_WorkQueue_Priority…
Browse files Browse the repository at this point in the history
…NotPropagated_fix-12247

Renaming RequestPriority during WorQueue.updateElements call
  • Loading branch information
mapellidario authored Feb 4, 2025
2 parents d48389c + 8afe170 commit ca2f4dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/python/WMCore/Services/WorkQueue/WorkQueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ def updateElements(self, *elementIds, **updatedParams):
if not elementIds:
return
eleParams = {}
if 'RequestPriority' in updatedParams:
updatedParams['Priority'] = updatedParams.pop('RequestPriority')
eleParams[self.eleKey] = updatedParams
conflictIDs = self.db.updateBulkDocumentsWithConflictHandle(elementIds, eleParams, maxConflictLimit=20)
if conflictIDs:
Expand Down

0 comments on commit ca2f4dc

Please sign in to comment.