Lava: Print when the job is being scheduled
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 21 Dec 2016 19:30:53 +0000 (14:30 -0500)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 18 Jan 2017 19:44:17 +0000 (14:44 -0500)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
scripts/lttng-baremetal-tests/lava-submit.py

index 6602e334405da83eaf95dc7ad4d9d37bf48ef16a..36f6fb5ffd462bb073ddbec0cd09e0ce8460eccb 100644 (file)
@@ -397,7 +397,11 @@ def main():
 
     #Check the status of the job every 30 seconds
     jobstatus = server.scheduler.job_status(jobid)['job_status']
+    not_running = False
     while jobstatus in 'Submitted' or jobstatus in 'Running':
+        if not_running is False and jobstatus in 'Running':
+            print('Job started running')
+            not_running = True
         time.sleep(30)
         jobstatus = server.scheduler.job_status(jobid)['job_status']
 
This page took 0.023916 seconds and 4 git commands to generate.