diff --git a/src/glicid_spawner/spawner.py b/src/glicid_spawner/spawner.py index 03504ad..d6aea5f 100644 --- a/src/glicid_spawner/spawner.py +++ b/src/glicid_spawner/spawner.py @@ -18,6 +18,11 @@ class GlicidSpawner(SlurmSpawner): help='Spawner singleuser command.', ).tag(config=True) + req_job_name = Unicode( + 'jupyterhub_glicid', + help='SLURM job name', + ).tag(config=True) + req_qos = Unicode( 'short', help='QoS name to submit job to resource manager', diff --git a/tests/test_spawner.py b/tests/test_spawner.py index e45b128..ba0ceaf 100644 --- a/tests/test_spawner.py +++ b/tests/test_spawner.py @@ -21,6 +21,7 @@ def test_spawner_config(): assert spawner.batchspawner_singleuser_cmd == 'glicid-spawner-singleuser' + assert spawner.req_job_name == 'jupyterhub_glicid' assert spawner.req_qos == 'short' assert spawner.progress_rate == 10