diff options
author | Preston Cody <codeman@gentoo.org> | 2007-06-16 18:05:01 +0000 |
---|---|---|
committer | Preston Cody <codeman@gentoo.org> | 2007-06-16 18:05:01 +0000 |
commit | 915791691b7c3df17880933ad832288a8515b1af (patch) | |
tree | 618b77b2f01d84acde483d67b16052fe56cf53b3 /client | |
parent | adding a default set of statuses from Rodrigo Lazo. (diff) | |
download | scire-915791691b7c3df17880933ad832288a8515b1af.tar.gz scire-915791691b7c3df17880933ad832288a8515b1af.tar.bz2 scire-915791691b7c3df17880933ad832288a8515b1af.zip |
updates from Rodrigo Lazo for Google SoC:
Fixed the backend and UI code so it can work with the latest
modification to the db (client_status, jobs_status tables). Also, the
job requesting mechanism uses the new run scheduling model
(crontab-like).
svn path=/; revision=223
Diffstat (limited to 'client')
-rwxr-xr-x | client/scirec.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/client/scirec.py b/client/scirec.py index 29d7f6f..032ec54 100755 --- a/client/scirec.py +++ b/client/scirec.py @@ -223,12 +223,18 @@ def scirec_main(client,known_jobs): print 'Summary: ' + str(summary) #print client.db_version() + if verbose: print "Acquiring jobs..." jobs = client.get_jobs(summary,known_jobs) - if not jobs: + + if jobs == []: + print 'There are no jobs.' + leftovers = [] + elif not jobs: print 'Problem acquiring jobs. Quitting.' sys.exit(1) - print 'Jobs: %s' %jobs - leftovers = run_jobs(client,jobs) + else: + print 'Jobs: %s' %jobs + leftovers = run_jobs(client,jobs) return leftovers |