Skip to content

Commit

Permalink
sweep: DIRACGrid#7219 fix: AREX delegation not found
Browse files Browse the repository at this point in the history
  • Loading branch information
aldbr authored and web-flow committed Oct 10, 2023
1 parent 3a055e3 commit 0ea3337
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 0ea3337

Please sign in to comment.