|
9 | 9 | from DIRAC.WorkloadManagementSystem.Client.JobMonitoringClient import JobMonitoringClient |
10 | 10 | from DIRAC.WorkloadManagementSystem.Client.JobManagerClient import JobManagerClient |
11 | 11 | from DIRAC.WorkloadManagementSystem.Client.PilotManagerClient import PilotManagerClient |
| 12 | +from DIRAC.WorkloadManagementSystem.Client.WMSAdministratorClient import WMSAdministratorClient |
| 13 | + |
12 | 14 | from DIRAC.WorkloadManagementSystem.Client.SandboxStoreClient import SandboxStoreClient |
13 | 15 |
|
14 | 16 | from WebAppDIRAC.Lib.WebHandler import WebHandler, WErr |
@@ -375,12 +377,12 @@ def web_jobData(self, id: int, data_kind: str) -> dict: |
375 | 377 | return {"success": "false", "error": "StagerReport not available"} |
376 | 378 | return {"success": "false", "error": result["Message"]} |
377 | 379 | if data_kind == "getPilotStdOut": |
378 | | - if not (result := WebAppClient().getJobPilotOutput(id))["OK"]: |
| 380 | + if not (result := WMSAdministratorClient().getJobPilotOutput(id))["OK"]: |
379 | 381 | return {"success": "false", "error": result["Message"]} |
380 | 382 | if "StdOut" in result["Value"]: |
381 | 383 | return {"success": "true", "result": result["Value"]["StdOut"]} |
382 | 384 | if data_kind == "getPilotStdErr": |
383 | | - if not (result := WebAppClient().getJobPilotOutput(id))["OK"]: |
| 385 | + if not (result := WMSAdministratorClient().getJobPilotOutput(id))["OK"]: |
384 | 386 | return {"success": "false", "error": result["Message"]} |
385 | 387 | if "StdErr" in result["Value"]: |
386 | 388 | return {"success": "true", "result": result["Value"]["StdErr"]} |
|
0 commit comments