aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2020-06-08 11:43:30 -0500
committertlatorre <tlatorre@uchicago.edu>2020-06-08 11:43:30 -0500
commit6ea901a252248477add3f686707ad827fa5ea1e2 (patch)
tree95759e283d13f25452739bb5e13c201ac28362d6
parent7dbc1b291b76605b12de4c2515c81f1c71462949 (diff)
downloadsddm-6ea901a252248477add3f686707ad827fa5ea1e2.tar.gz
sddm-6ea901a252248477add3f686707ad827fa5ea1e2.tar.bz2
sddm-6ea901a252248477add3f686707ad827fa5ea1e2.zip
update submit-grid-jobs to check for unique filenames instead of runs
-rwxr-xr-xutils/submit-grid-jobs8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/submit-grid-jobs b/utils/submit-grid-jobs
index 0069162..f73a57b 100755
--- a/utils/submit-grid-jobs
+++ b/utils/submit-grid-jobs
@@ -497,9 +497,9 @@ if __name__ == '__main__':
conn.commit()
- results = c.execute('SELECT DISTINCT run FROM state')
+ results = c.execute('SELECT DISTINCT filename FROM state')
- unique_runs = [row[0] for row in results.fetchall()]
+ unique_filenames = [row[0] for row in results.fetchall()]
if 'SDDM_DATA' not in os.environ:
log.warn("Please set the SDDM_DATA environment variable to point to the fitter source code location", file=sys.stderr)
@@ -562,9 +562,9 @@ if __name__ == '__main__':
if len(ev) == 0:
continue
- if len(ev) and not args.reprocess and int(ev.iloc[0]['run']) in unique_runs:
+ if len(ev) and not args.reprocess and filename in unique_filenames:
head, tail = split(filename)
- log.notice("Skipping %s because run %i is already in the database" % (tail,int(ev.iloc[0]['run'])))
+ log.notice("Skipping %s because it's already in the database" % tail)
continue
first_gtid = rhdr.set_index('run').to_dict()['first_gtid']