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
+ 4
5
@@ -695,13 +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'])
print('squeue return code', code)
print('squeue output:', job_names)
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