Skip to content

Commit 2bd536c

Browse files
authored
Merge pull request #7219 from aldbr/v8.0_FIX_AREX-delegation-404
[8.0] fix: AREX delegation not found
2 parents 9033890 + 0569143 commit 2bd536c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/DIRAC/Resources/Computing/AREXComputingElement.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ def _getDelegationIDs(self):
293293
# Submit the POST request to get the delegation
294294
result = self._request("get", query)
295295
if not result["OK"]:
296-
self.log.error("Issue while interacting with the delegations.", result["Message"])
297-
return S_ERROR("Issue while interacting with the delegations")
296+
self.log.warn("Issue while interacting with the delegations.", result["Message"])
297+
return S_OK([])
298298
response = result["Value"]
299299

300300
# If there is no delegation, response.json is expected to return an exception
@@ -328,7 +328,7 @@ def _getProxyFromDelegationID(self, delegationID):
328328
# Submit the POST request to get the delegation
329329
result = self._request("post", query, params=params)
330330
if not result["OK"]:
331-
self.log.error("Issue while interacting with the delegations.", result["Message"])
331+
self.log.error("Issue while interacting with delegation ", f"{delegationID}: {result['Message']}")
332332
return S_ERROR("Issue while interacting with the delegations")
333333
response = result["Value"]
334334

@@ -422,7 +422,7 @@ def submitJob(self, executableFile, proxy, numberOfJobs=1, inputs=None, outputs=
422422

423423
self.log.verbose(f"Executable file path: {executableFile}")
424424

425-
# Get a delegation and use the same delegation for all the jobs
425+
# Get existing delegations
426426
result = self._getDelegationIDs()
427427
if not result["OK"]:
428428
self.log.error("Could not get delegation IDs.", result["Message"])
@@ -436,7 +436,7 @@ def submitJob(self, executableFile, proxy, numberOfJobs=1, inputs=None, outputs=
436436
# Get the proxy attached to the delegationID
437437
result = self._getProxyFromDelegationID(delegationID)
438438
if not result["OK"]:
439-
return result
439+
continue
440440
proxy = result["Value"]
441441

442442
if proxy.getDIRACGroup() != proxyGroup:

0 commit comments

Comments
 (0)