sdss / lvmdrp

Local Volume Mapper (LVM) Data Reduction Pipeline
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Fixes issues with parallel drpall generation #108

Closed havok2063 closed 3 months ago

havok2063 commented 3 months ago

This PR closes #94 with an issue when the drpall summary rows were being written by multiple processes at the same time. This PR uses the lockfile package to set up a lock on the drpall hdf5 file, during write, with a retry-timeout of 5 seconds.

This should now allow for safe updates/appends of the drpall file during cluster runs. At the end of the cluster run, we can manually run the convert_h5_to_fits to also produce a FITS file version of the summary file, which can be easier for astronomers to use.