diff options
author | sienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2012-03-07 12:23:44 -0500 |
---|---|---|
committer | sienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2012-03-07 12:23:44 -0500 |
commit | de5f2c42f5100c113106e660315a50434e383e7e (patch) | |
tree | a7d9d329e50ba0c37ff58465f9236fa35b21fbd3 /steuermann/run_all.py | |
parent | 47fbf94c8d47fdfb83364fd4f5c6732ecc78ccd6 (diff) | |
download | steuermann-de5f2c42f5100c113106e660315a50434e383e7e.tar.gz |
checkpoint
git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@561 d34015c8-bcbb-4646-8ac8-8ba5febf221d
Diffstat (limited to 'steuermann/run_all.py')
-rw-r--r-- | steuermann/run_all.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/steuermann/run_all.py b/steuermann/run_all.py index b87ba7d..a097a1b 100644 --- a/steuermann/run_all.py +++ b/steuermann/run_all.py @@ -380,12 +380,21 @@ def run_all(xnodes, run_name, db) : runner = run.runner( xnodes ) + none_running = 0 + # will count how many times through there was nothing running while 1 : ( keep_running, no_sleep ) = run_step( runner, xnodes, run_name, db ) if not keep_running : break if not no_sleep : + if len(runner.all_procs) == 0 : + none_running += 1 + if none_running > 5 : + print "No processes running - some prereq missing" + break + else : + none_running = 0 time.sleep(1) # @@ -443,6 +452,7 @@ def run_step( runner, xnodes, run_name, db ) : else : try : tmp = runner.run(x, run_name, no_run=no_run, logfile_name = make_log_file_name(run_name, host, table, cmd) ) + print "STARTED",x_name except run.run_exception, e : now = str(datetime.datetime.now()) db.execute("UPDATE sm_status SET start_time=?, end_time=?, status='E', notes=? WHERE ( run=? AND host=? AND tablename=? AND cmd=? )", |