Skip to content

Commit 031067c

Browse files
authored
Merge pull request #785 from chaen/WMSAdministratorClient
Reintroduce WMSAdministratorClient
2 parents 92aea38 + b62ebd6 commit 031067c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/WebAppDIRAC/WebApp/handler/JobMonitorHandler.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
from DIRAC.WorkloadManagementSystem.Client.JobMonitoringClient import JobMonitoringClient
1010
from DIRAC.WorkloadManagementSystem.Client.JobManagerClient import JobManagerClient
1111
from DIRAC.WorkloadManagementSystem.Client.PilotManagerClient import PilotManagerClient
12+
from DIRAC.WorkloadManagementSystem.Client.WMSAdministratorClient import WMSAdministratorClient
13+
1214
from DIRAC.WorkloadManagementSystem.Client.SandboxStoreClient import SandboxStoreClient
1315

1416
from WebAppDIRAC.Lib.WebHandler import WebHandler, WErr
@@ -375,12 +377,12 @@ def web_jobData(self, id: int, data_kind: str) -> dict:
375377
return {"success": "false", "error": "StagerReport not available"}
376378
return {"success": "false", "error": result["Message"]}
377379
if data_kind == "getPilotStdOut":
378-
if not (result := WebAppClient().getJobPilotOutput(id))["OK"]:
380+
if not (result := WMSAdministratorClient().getJobPilotOutput(id))["OK"]:
379381
return {"success": "false", "error": result["Message"]}
380382
if "StdOut" in result["Value"]:
381383
return {"success": "true", "result": result["Value"]["StdOut"]}
382384
if data_kind == "getPilotStdErr":
383-
if not (result := WebAppClient().getJobPilotOutput(id))["OK"]:
385+
if not (result := WMSAdministratorClient().getJobPilotOutput(id))["OK"]:
384386
return {"success": "false", "error": result["Message"]}
385387
if "StdErr" in result["Value"]:
386388
return {"success": "true", "result": result["Value"]["StdErr"]}

0 commit comments

Comments
 (0)