jupyterhub / batchspawner

Custom Spawner for Jupyterhub to start servers in batch scheduled systems
BSD 3-Clause "New" or "Revised" License
190 stars 134 forks source link

`SlurmSpawner`'s default `batch_script` fails if `jupyterhub-singleuser` is not in the `PATH` #264

Closed t20100 closed 8 months ago

t20100 commented 1 year ago

SinceSlurmSpawner.batch_script contains the following line and it's setting set -euo pipefail, it fails if jupyterhub-singleuser is not in the PATH: https://github.com/jupyterhub/batchspawner/blob/37a2e8e5012a5ac16bbdfccaa7796aefa6f9589b/batchspawner/batchspawner.py#L708

This happens when setting jupyterhub's Spawner.cmd to an absolute path.

Removing the which command should fix the issue.