Skip to content

Commit

Permalink
Merge pull request #7949 from DIRACGridBot/cherry-pick-2-3edd72463-in…
Browse files Browse the repository at this point in the history
…tegration

[sweep:integration] fix(Resources): AREX should renew the delegation before submitting a payload
  • Loading branch information
fstagni authored Dec 13, 2024
2 parents 8a6cf6b + c5ffe21 commit 7120c95
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 7120c95

Please sign in to comment.