diff --git a/webservice/webservice.py b/webservice/webservice.py
index 123f0bc33021b15c0b4c939c26300d97b20843a2..dacc6302d491037e95c67e7256e5cec9e86a8b2e 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',