Skip to content

Commit 9c31125

Browse files
authored
Merge pull request #169 from art-daq/eflumerf/XMLRPCWait
Add a step during boot to wait for all XMLRPC servers to come up
2 parents 91d596d + 17fc8e3 commit 9c31125

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

rc/control/daqinterface.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3380,6 +3380,19 @@ def revert_failed_boot(failed_action):
33803380
)
33813381
return
33823382

3383+
starttime = time()
3384+
self.print_log("i", "Waiting for artdaq XMLRPC servers to start")
3385+
for procinfo in self.procinfos:
3386+
while True:
3387+
try:
3388+
procinfo.lastreturned = procinfo.server.daq.status()
3389+
break
3390+
except Exception as ex:
3391+
sleep(1)
3392+
pass
3393+
endtime = time()
3394+
self.print_log("i", "done (%.1f seconds)." % (endtime - starttime))
3395+
33833396
if self.msgviewer_proc is not None:
33843397
# now wait/check status from msgviewer
33853398
if self.msgviewer_proc.wait() != 0:

0 commit comments

Comments
 (0)