Fix: continue on spurious protocol error
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 1 May 2019 20:06:12 +0000 (16:06 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 1 May 2019 20:06:12 +0000 (16:06 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
scripts/system-tests/lava2-submit.py

index a114f1c69ab2e692d818f31fab020af854c0bfab..fe95daa5c9ffd619338055d952ef1e39cb2c335f 100644 (file)
@@ -227,7 +227,10 @@ def main():
             print('Job started running')
             running = True
         time.sleep(30)
-        jobstatus = server.scheduler.job_state(jobid)['job_state']
+        try:
+            jobstatus = server.scheduler.job_state(jobid)['job_state']
+        except xmlrpc.client.ProtocolError as e:
+            print('Protocol error, retring')
     print('Job ended with {} status.'.format(jobstatus))
 
     if jobstatus != 'Finished':
This page took 0.023221 seconds and 4 git commands to generate.