Skip to content

Launch jobs with variable nice value

Philipp Schmidt requested to merge feat/degressive-slurm-priority into master

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)

Reviewers

@roscar @kluyvert @ahmedk

Merge request reports