Skip to content
Snippets Groups Projects

Launch jobs with variable nice value

Merged Philipp Schmidt requested to merge feat/degressive-slurm-priority into master
1 unresolved thread
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -695,10 +695,12 @@ async def get_slurm_nice(partition: str, instrument: str,
"""
# List all names for jobs running in the specified partition.
code, job_names = await run_proc_async(
returncode, job_names = await run_proc_async(
['squeue', '-h', '-o', '%.20j', '-p', partition, '--me'])
if code != 0:
if returncode != 0:
logging.error(f'Non-zero return code {returncode} from '
f'`squeue` upon counting number of jobs')
return 0 # Fallback if something went wrong.
# Base value depending on proposal type using cycle, assuming that
Loading