Skip to content

Commit

Permalink
fix: prevent AREXCE from creating delegations each time a CE got a sm…
Browse files Browse the repository at this point in the history
…all and temporary issue
  • Loading branch information
aldbr committed Oct 18, 2023
1 parent 003ccc1 commit 3f8f832
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 3f8f832

Please sign in to comment.