Commit 2a404f19 authored by Leo Pound Singer's avatar Leo Pound Singer

bayestar_localize_coincs: put jobs on hold if they fail

Original: 64ba3236035876c34015839b79c352288eb5051d
parent 05522083
...@@ -109,6 +109,8 @@ if opts.condor_submit: ...@@ -109,6 +109,8 @@ if opts.condor_submit:
coinc_event_ids = [int(coinc.coinc_event_id) for coinc, _ in coinc_event_ids = [int(coinc.coinc_event_id) for coinc, _ in
ligolw_bayestar.coinc_and_sngl_inspirals_for_xmldoc(xmldoc)] ligolw_bayestar.coinc_and_sngl_inspirals_for_xmldoc(xmldoc)]
cmd = ['condor_submit', 'accounting_group=ligo.dev.o3.cbc.pe.bayestar', cmd = ['condor_submit', 'accounting_group=ligo.dev.o3.cbc.pe.bayestar',
'on_exit_hold = (ExitBySignal == False) && (ExitCode == 0)',
'on_exit_remove = (ExitBySignal == True) || (ExitCode != 0)',
'universe=vanilla', 'getenv=true', 'executable=' + sys.executable, 'universe=vanilla', 'getenv=true', 'executable=' + sys.executable,
'JobBatchName=BAYESTAR', 'environment="OMP_NUM_THREADS=1"', 'JobBatchName=BAYESTAR', 'environment="OMP_NUM_THREADS=1"',
'error=' + os.path.join(opts.output, '$(CoincEventId).err'), 'error=' + os.path.join(opts.output, '$(CoincEventId).err'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment