From b404734fe5a85991c8b4c52420335f0fab71e1b5 Mon Sep 17 00:00:00 2001 From: akremin Date: Fri, 23 Aug 2024 14:50:03 -0500 Subject: [PATCH] fix pernight redshift intid bug --- py/desispec/workflow/processing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/py/desispec/workflow/processing.py b/py/desispec/workflow/processing.py index c566054db..88200cc8c 100644 --- a/py/desispec/workflow/processing.py +++ b/py/desispec/workflow/processing.py @@ -1646,7 +1646,8 @@ def submit_redshifts(ptable, prows, tnight, internal_id, queue, reservation, else: # pernight expids = [prow['EXPID'][0] for prow in zprows] log.info(f"Expids: {expids}.\n") - redshift_prow, internal_id = make_redshift_prow(zprows, tnight, descriptor=zsubtype, internal_id=internal_id) + redshift_prow = make_redshift_prow(zprows, tnight, descriptor=zsubtype, internal_id=internal_id) + internal_id += 1 redshift_prow = create_and_submit(redshift_prow, queue=queue, reservation=reservation, joint=True, dry_run=dry_run, strictly_successful=strictly_successful, check_for_outputs=check_for_outputs, resubmit_partial_complete=resubmit_partial_complete, system_name=system_name)