From 5ed2cebb5532e9b891deaf3129097142e62f957a Mon Sep 17 00:00:00 2001 From: Magnus Hagdorn Date: Wed, 12 Nov 2025 14:14:14 +0100 Subject: [PATCH] fix(#319): the sbatch option '--get-user-env' no longer takes an argument --- batchspawner/batchspawner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/batchspawner/batchspawner.py b/batchspawner/batchspawner.py index 866bf51..e11fd29 100644 --- a/batchspawner/batchspawner.py +++ b/batchspawner/batchspawner.py @@ -679,7 +679,7 @@ class SlurmSpawner(UserEnvMixin, BatchSpawnerRegexStates): #SBATCH --job-name=spawner-jupyterhub #SBATCH --chdir={{homedir}} #SBATCH --export={{keepvars}} -#SBATCH --get-user-env=L +#SBATCH --get-user-env {% if partition %}#SBATCH --partition={{partition}} {% endif %}{% if runtime %}#SBATCH --time={{runtime}} {% endif %}{% if memory %}#SBATCH --mem={{memory}}