diff --git a/src/WebAppDIRAC/WebApp/handler/PilotMonitorHandler.py b/src/WebAppDIRAC/WebApp/handler/PilotMonitorHandler.py index cc92073e..228ce631 100644 --- a/src/WebAppDIRAC/WebApp/handler/PilotMonitorHandler.py +++ b/src/WebAppDIRAC/WebApp/handler/PilotMonitorHandler.py @@ -4,6 +4,7 @@ from DIRAC import gConfig, S_OK, gLogger from DIRAC.Core.Utilities.Graphs.Palette import Palette from DIRAC.MonitoringSystem.Client.WebAppClient import WebAppClient +from DIRAC.WorkloadManagementSystem.Client.PilotManagerClient import PilotManagerClient from WebAppDIRAC.Lib.WebHandler import WebHandler @@ -139,7 +140,7 @@ def __request(self): return req def web_getJobInfoData(self, data): - RPC = WebAppClient() + RPC = PilotManagerClient() if self.get_argument("data_kind") == "getPilotOutput": if (result := RPC.getPilotOutput(data))["OK"]: return {"success": "true", "result": result["Value"]["StdOut"]}