aboutsummaryrefslogtreecommitdiff
path: root/steuermann/run_all.py
diff options
context:
space:
mode:
authorsienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2012-01-18 17:36:05 -0500
committersienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2012-01-18 17:36:05 -0500
commita5afe5f657f5812ea95c5eb476eb355de6afa5a9 (patch)
treef14049a9056e660abf736073ae14a7221011fca0 /steuermann/run_all.py
parentc7082d39ae1f653fc33383d9e093d54b00022fd5 (diff)
downloadsteuermann-a5afe5f657f5812ea95c5eb476eb355de6afa5a9.tar.gz
new sm files for nightly builds
IMPORT feature in specification language checkpointing of various uncommitted changes git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@538 d34015c8-bcbb-4646-8ac8-8ba5febf221d
Diffstat (limited to 'steuermann/run_all.py')
-rw-r--r--steuermann/run_all.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/steuermann/run_all.py b/steuermann/run_all.py
index 0c81fbf..b87ba7d 100644
--- a/steuermann/run_all.py
+++ b/steuermann/run_all.py
@@ -451,10 +451,21 @@ def run_step( runner, xnodes, run_name, db ) :
no_sleep = 1
keep_running = 1
else :
- if tmp :
- # returns true/false whether it actually ran it - it may not because of resource limits
+ if tmp == 'R' :
db.execute("UPDATE sm_status SET start_time = ?, status = 'R' WHERE ( run = ? AND host = ? AND tablename = ? AND cmd = ? )",
( str(datetime.datetime.now()), run_name, host, table, cmd ) )
+ elif tmp == 'D' :
+ # same as skip above
+ x.finished = 1
+ no_sleep = 1
+ keep_running = 1
+ db.execute("UPDATE sm_status SET start_time = ?, status = 'S' WHERE ( run = ? AND host = ? AND tablename = ? AND cmd = ? )",
+ ( str(datetime.datetime.now()), run_name, host, table, cmd ) )
+ elif tmp == 'M' :
+ # hit max proc - not run, but try again later
+ pass
+ else :
+ print "WARNING: runner.run() returned unknown code %s"%str(tmp)
db.commit()