Skip to content

Commit 11edec6

Browse files
committed
fix(Resources): AREX should renew the delegation before submitting a payload
1 parent 6b374aa commit 11edec6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/DIRAC/Resources/Computing/AREXComputingElement.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,11 @@ def submitJob(self, executableFile, proxy, numberOfJobs=1, inputs=None, outputs=
481481

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

486491
if not currentDelegationID:

0 commit comments

Comments
 (0)