Skip to content

Commit

Permalink
Merge pull request #7936 from aldbr/v8.0_FIX_arc-delegation-renew-submit
Browse files Browse the repository at this point in the history
[8.0] fix(Resources): AREX should renew the delegation before submitting a payload
  • Loading branch information
chrisburr authored Dec 13, 2024
2 parents 9a2ec8b + 11edec6 commit 3edd724
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 @@ -481,6 +481,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 3edd724

Please sign in to comment.