Skip to content

Commit

Permalink
Merge pull request #7219 from aldbr/v8.0_FIX_AREX-delegation-404
Browse files Browse the repository at this point in the history
[8.0] fix: AREX delegation not found
  • Loading branch information
fstagni authored Oct 10, 2023
2 parents 9033890 + 0569143 commit 2bd536c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/DIRAC/Resources/Computing/AREXComputingElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ def _getDelegationIDs(self):
# Submit the POST request to get the delegation
result = self._request("get", query)
if not result["OK"]:
self.log.error("Issue while interacting with the delegations.", result["Message"])
return S_ERROR("Issue while interacting with the delegations")
self.log.warn("Issue while interacting with the delegations.", result["Message"])
return S_OK([])
response = result["Value"]

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

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

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

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

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

0 comments on commit 2bd536c

Please sign in to comment.