Skip to content

Commit 8d5f286

Browse files
authored
Update batchspawner.py
Switched --workdir in the slurm section to be --chdir instead. Slurm 19.05 series removed the --workdir option.
1 parent 03efb3c commit 8d5f286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

batchspawner/batchspawner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ class SlurmSpawner(UserEnvMixin,BatchSpawnerRegexStates):
588588
batch_script = Unicode("""#!/bin/bash
589589
#SBATCH --output={{homedir}}/jupyterhub_slurmspawner_%j.log
590590
#SBATCH --job-name=spawner-jupyterhub
591-
#SBATCH --workdir={{homedir}}
591+
#SBATCH --chdir={{homedir}}
592592
#SBATCH --export={{keepvars}}
593593
#SBATCH --get-user-env=L
594594
{% if partition %}#SBATCH --partition={{partition}}

0 commit comments

Comments
 (0)