Skip to content

Commit

Permalink
Merge pull request DIRACGrid#7234 from DIRACGridBot/cherry-pick-2-2bd…
Browse files Browse the repository at this point in the history
…536c7d-integration

[sweep:integration] fix: AREX delegation not found
  • Loading branch information
fstagni authored Oct 10, 2023
2 parents 3a055e3 + 0ea3337 commit 37690cd
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 @@ -285,8 +285,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 @@ -320,7 +320,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 @@ -414,7 +414,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 @@ -428,7 +428,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 37690cd

Please sign in to comment.