Skip to content

Commit

Permalink
sweep: #7936 fix(Resources): AREX should renew the delegation before …
Browse files Browse the repository at this point in the history
…submitting a payload
  • Loading branch information
aldbr authored and web-flow committed Dec 13, 2024
1 parent 8a6cf6b commit c5ffe21
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/DIRAC/Resources/Computing/AREXComputingElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,11 @@ def submitJob(self, executableFile, proxy, numberOfJobs=1, inputs=None, outputs=

# If we are here, we have found the right delegationID to use
currentDelegationID = delegationID
# Renew the delegation just in case
if not self.token or self.alwaysIncludeProxy:
result = self._renewDelegation(currentDelegationID)
if not result["OK"]:
self.log.warn("Could not renew the delegation", f"{currentDelegationID}: {result['Message']}")
break

if not currentDelegationID:
Expand Down

0 comments on commit c5ffe21

Please sign in to comment.