Skip to content

Commit b72e493

Browse files
authored
Merge pull request #803 from fstagni/pilotManagerHandler_adapt
refactor: moved pilots CE interactions RPC calls
2 parents 68f98bd + 7f08698 commit b72e493

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/WebAppDIRAC/WebApp/handler/JobMonitorHandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def web_jobData(self, id: int, data_kind: str) -> dict:
390390
pilotClient = PilotManagerClient()
391391
if (retVal := pilotClient.getPilots(id))["OK"]:
392392
pilotReference = list(retVal["Value"])[0]
393-
if (retVal := pilotClient.getPilotLoggingInfo(pilotReference))["OK"]:
393+
if (retVal := WebAppClient().getPilotLoggingInfo(pilotReference))["OK"]:
394394
return {"success": "true", "result": retVal["Value"]}
395395
return {"success": "false", "error": retVal["Message"]}
396396
return {"success": "false", "error": retVal["Message"]}

src/WebAppDIRAC/WebApp/handler/PilotMonitorHandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def __request(self):
140140
return req
141141

142142
def web_getJobInfoData(self, data):
143-
RPC = PilotManagerClient()
143+
RPC = WebAppClient()
144144
if self.get_argument("data_kind") == "getPilotOutput":
145145
if (result := RPC.getPilotOutput(data))["OK"]:
146146
return {"success": "true", "result": result["Value"]["StdOut"]}

0 commit comments

Comments
 (0)