Add SLURM job name to the config

This commit is contained in:
Benoît Seignovert 2024-02-26 09:55:15 +01:00
parent 1f51d5e017
commit 0273f449b8
Signed by: Benoît Seignovert
GPG key ID: F5D8895227D18A0B
2 changed files with 6 additions and 0 deletions

View file

@ -18,6 +18,11 @@ class GlicidSpawner(SlurmSpawner):
help='Spawner singleuser command.', help='Spawner singleuser command.',
).tag(config=True) ).tag(config=True)
req_job_name = Unicode(
'jupyterhub_glicid',
help='SLURM job name',
).tag(config=True)
req_qos = Unicode( req_qos = Unicode(
'short', 'short',
help='QoS name to submit job to resource manager', help='QoS name to submit job to resource manager',

View file

@ -21,6 +21,7 @@ def test_spawner_config():
assert spawner.batchspawner_singleuser_cmd == 'glicid-spawner-singleuser' assert spawner.batchspawner_singleuser_cmd == 'glicid-spawner-singleuser'
assert spawner.req_job_name == 'jupyterhub_glicid'
assert spawner.req_qos == 'short' assert spawner.req_qos == 'short'
assert spawner.progress_rate == 10 assert spawner.progress_rate == 10