Allow user to specify exposures or tiles to resubmit #2450
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This makes changes to
desi_resubmit_queue_failures
anddesispec.workflow.processing.update_and_recursively_submit()
to allow the user to specify either exposure ID's or tile ID's that they want to resubmit failures for. The code warns the user that any dependencies that failed will also be resubmitted but only submits the specified jobs and any required dependencies. If a specified job was successful, the script skips that entry. The command line script accepts a comma-separated list of exposures or tiles. If both are specified it raises an error. If none are specified it resubmits all failures on the night, as it did prior to this code change.Testing
I ran 5 tests and confirmed that it did what I expected in all 5 circumstances. Logs for all 5 tests can be found in: /global/cfs/cdirs/desi/users/kremin/PRs/specify_resub.
Test 1:
desi_resubmit_queue_failures -n 20250215 -e "279598,279654,279655" --dry-run-level=3 > test_exps_2resub_1good.log
Test 2:
desi_resubmit_queue_failures -n 20250215 -e "279654,279655,279672" --dry-run-level=3 > test_exps_3resub.log
Test 3:
desi_resubmit_queue_failures -n 20250215 -t "83565,83566,83571" --dry-run-level=3 > test_tiles_3resub.log
Test 4:
desi_resubmit_queue_failures -n 20250215 -t "83565,83566,40457" --dry-run-level=3 > test_tiles_2resub_1good.log
Test 5:
desi_resubmit_queue_failures -n 20250215 --dry-run-level=3 > test_all_resub.log