Skip to content

Commit

Permalink
Merge pull request DIRACGrid#7247 from aldbr/v8.0_FIX_AREX-delegation…
Browse files Browse the repository at this point in the history
…-again

[8.0] fix: AREX delegation again
  • Loading branch information
fstagni authored Oct 20, 2023
2 parents 178e0c0 + 3f8f832 commit 7ab9ccf
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/DIRAC/Resources/Computing/AREXComputingElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,19 @@ def submitJob(self, executableFile, proxy, numberOfJobs=1, inputs=None, outputs=
for delegationID in delegationIDs:
# Get the proxy attached to the delegationID
result = self._getProxyFromDelegationID(delegationID)
if not result["OK"]:

# Bug in AREX, sometimes delegationID does not exist anymore,
# but still appears in the list of delegationIDs.
# Issue submitted here: https://bugzilla.nordugrid.org/show_bug.cgi?id=4133
# In this case, we just try with the next one
if not result["OK"] and "404" in result["Message"]:
continue

# Else, it means there was an issue with the CE,
# we stop the execution
if not result["OK"]:
return result

proxy = result["Value"]

if proxy.getDIRACGroup() != proxyGroup:
Expand Down

0 comments on commit 7ab9ccf

Please sign in to comment.