From 7c19943f71683f80ef718769f03b538fd4b8a1ce Mon Sep 17 00:00:00 2001 From: aldbr Date: Fri, 28 Jun 2024 11:02:42 +0200 Subject: [PATCH] fix(Resources): AREX submission error response can be a dict or a list --- src/DIRAC/Resources/Computing/AREXComputingElement.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/DIRAC/Resources/Computing/AREXComputingElement.py b/src/DIRAC/Resources/Computing/AREXComputingElement.py index 18815da59f6..b3592f6556a 100755 --- a/src/DIRAC/Resources/Computing/AREXComputingElement.py +++ b/src/DIRAC/Resources/Computing/AREXComputingElement.py @@ -381,6 +381,9 @@ def _getArcJobID(self, executableFile, inputs, outputs, delegation): response = result["Value"] responseJob = response.json()["job"] + if isinstance(responseJob, list): + responseJob = responseJob[0] + if responseJob["status-code"] > "400": self.log.warn( "Failed to submit job",