fail early if assemble_fibermap fails #876
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.
This PR makes two changes to desi_proc to make debugging failures a bit more human friendly:
assemble_fibermap
fails (e.g. due to a missing input file), exit immediatelyinstead of proceeding onto preprocessing and having N>>1 ranks fail with
interleaved messages about missing fibermaps.
levels of parallelism -- now if the first step fails, exit the slurm script without
running the second step (which would just fail again with confusingly similar
log messages).
I tested this with
desi_proc --batch --traceshift --scattered-light -n 20200212 -e 48313
which indeed fails due to a science exposure with a missing input coordinates file, but now it exits more cleanly; see/global/cfs/cdirs/desi/spectro/redux/daily/run/scripts/night/20200212/science-20200212-00048313-b1b2b4b5b8r1r2r4r5r8z1z2z4z5z8-28139563.log
:@akremin please take a look