Launch jobs with variable nice value
Description
Based on the discussion in https://git.xfel.eu/calibration/planning/-/issues/110, this MR introduces a flexible --nice
value passed to sbatch
depending on the number of jobs running in the selected partition for this instrument. Originally only meant for active proposals, the code is cleaner when just using the partition
value determined before and is currently changed by ITDM's script anyway shortly after submission. I will clarify this point before merging.
How Has This Been Tested?
Tests! Unit tests!
Types of changes
- New feature (non-breaking change which adds functionality)