@@ -505,22 +505,6 @@ def get_env(self):
505
505
506
506
507
507
class SlurmSpawner (UserEnvMixin ,BatchSpawnerRegexStates ):
508
- """A Spawner that just uses Popen to start local processes."""
509
-
510
- # all these req_foo traits will be available as substvars for templated strings
511
- req_cluster = Unicode ('' , \
512
- help = "Cluster name to submit job to resource manager"
513
- ).tag (config = True )
514
-
515
- req_qos = Unicode ('' , \
516
- help = "QoS name to submit job to resource manager"
517
- ).tag (config = True )
518
-
519
- req_srun = Unicode ('srun' ,
520
- help = "Job step wrapper, default 'srun'. Set to '' you do not want "
521
- "to run in job step (affects environment handling)"
522
- ).tag (config = True )
523
-
524
508
batch_script = Unicode ("""#!/bin/bash
525
509
#SBATCH --output={{homedir}}/jupyterhub_slurmspawner_%j.log
526
510
#SBATCH --job-name=spawner-jupyterhub
@@ -540,6 +524,21 @@ class SlurmSpawner(UserEnvMixin,BatchSpawnerRegexStates):
540
524
echo "jupyterhub-singleuser ended gracefully"
541
525
{{epilogue}}
542
526
""" ).tag (config = True )
527
+
528
+ # all these req_foo traits will be available as substvars for templated strings
529
+ req_cluster = Unicode ('' , \
530
+ help = "Cluster name to submit job to resource manager"
531
+ ).tag (config = True )
532
+
533
+ req_qos = Unicode ('' , \
534
+ help = "QoS name to submit job to resource manager"
535
+ ).tag (config = True )
536
+
537
+ req_srun = Unicode ('srun' ,
538
+ help = "Job step wrapper, default 'srun'. Set to '' you do not want "
539
+ "to run in job step (affects environment handling)"
540
+ ).tag (config = True )
541
+
543
542
# outputs line like "Submitted batch job 209"
544
543
batch_submit_cmd = Unicode ('sbatch --parsable' ).tag (config = True )
545
544
# outputs status and exec node like "RUNNING hostname"
0 commit comments