jupyterhub / batchspawner

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

Display slurm error message instead of HTTP code #308

Closed lifetooeasy closed 1 month ago

lifetooeasy commented 3 months ago

jupyterhub 4.1.5 batchspawner 1.3.0

If I give a wrong slurm account the spawner shows a HTTP 500 error message, expected is:

JupyterHub pages:314] Error starting server  sbatch: error: Batch job submission failed: Invalid account or account/partition combination specified

Do I need to hard code it or is there any configuration parameter for that?