aboutsummaryrefslogtreecommitdiff
path: root/utils/submit-grid-jobs
diff options
context:
space:
mode:
Diffstat (limited to 'utils/submit-grid-jobs')
-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']