Skip to content

Commit 3f8f832

Browse files
committed
fix: prevent AREXCE from creating delegations each time a CE got a small and temporary issue
1 parent 003ccc1 commit 3f8f832

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/DIRAC/Resources/Computing/AREXComputingElement.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,19 @@ def submitJob(self, executableFile, proxy, numberOfJobs=1, inputs=None, outputs=
435435
for delegationID in delegationIDs:
436436
# Get the proxy attached to the delegationID
437437
result = self._getProxyFromDelegationID(delegationID)
438-
if not result["OK"]:
438+
439+
# Bug in AREX, sometimes delegationID does not exist anymore,
440+
# but still appears in the list of delegationIDs.
441+
# Issue submitted here: https://bugzilla.nordugrid.org/show_bug.cgi?id=4133
442+
# In this case, we just try with the next one
443+
if not result["OK"] and "404" in result["Message"]:
439444
continue
445+
446+
# Else, it means there was an issue with the CE,
447+
# we stop the execution
448+
if not result["OK"]:
449+
return result
450+
440451
proxy = result["Value"]
441452

442453
if proxy.getDIRACGroup() != proxyGroup:

0 commit comments

Comments
 (0)