Skip to content
Snippets Groups Projects
Commit 445ec664 authored by Karim Ahmed's avatar Karim Ahmed
Browse files

give a comment over slurm scheduling command

parent 3950b2bf
No related branches found
No related tags found
1 merge request!230modify slurm name in production through webservice
......@@ -688,6 +688,9 @@ async def server_runner(config, mode):
if detector.upper() in ["JUNGFRAU", "FASTCCD", "PNCCD",
"EPIX", "EPIX10K"]:
priority = '0'
# --slurm-scheduling is the --nice slurm command
# to increase priority by having a lower number.
cmd = ["python", "-m", "xfel_calibrate.calibrate",
detector, "DARK", '--priority', priority,
'--slurm-scheduling', str(config[action]['sched-prio']), # noqa
......@@ -760,6 +763,9 @@ async def server_runner(config, mode):
for detector, dconfig in detectors.items():
if "-" in detector:
detector, _ = detector.split("-")
# --slurm-scheduling is the --nice slurm command
# to increase priority by having a lower number.
cmd = ["python", "-m", "xfel_calibrate.calibrate",
detector, "CORRECT", '--slurm-scheduling',
str(config[action]['sched-prio']), '--slurm-name',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment