From 11edec6845abe443e137647f71ba4eb925ca2784 Mon Sep 17 00:00:00 2001 From: aldbr Date: Thu, 5 Dec 2024 14:32:29 +0100 Subject: [PATCH] fix(Resources): AREX should renew the delegation before submitting a payload --- src/DIRAC/Resources/Computing/AREXComputingElement.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/DIRAC/Resources/Computing/AREXComputingElement.py b/src/DIRAC/Resources/Computing/AREXComputingElement.py index dec1df49cad..bce9d0e3935 100755 --- a/src/DIRAC/Resources/Computing/AREXComputingElement.py +++ b/src/DIRAC/Resources/Computing/AREXComputingElement.py @@ -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: