From 6ea901a252248477add3f686707ad827fa5ea1e2 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Mon, 8 Jun 2020 11:43:30 -0500 Subject: update submit-grid-jobs to check for unique filenames instead of runs --- utils/submit-grid-jobs | 8 ++++---- 1 file 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'] -- cgit