From 445ec6643a5baf81980c5cd10d94b3e155741be3 Mon Sep 17 00:00:00 2001
From: Karim Ahmed <karim.ahmed@xfel.eu>
Date: Thu, 16 Jan 2020 11:48:10 +0100
Subject: [PATCH] give a comment over slurm scheduling command

---
 webservice/webservice.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/webservice/webservice.py b/webservice/webservice.py
index 123f0bc33..dacc6302d 100644
--- a/webservice/webservice.py
+++ b/webservice/webservice.py
@@ -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',
-- 
GitLab