@@ -79,52 +79,52 @@ class BatchSpawnerBase(Spawner):
79
79
# override default server ip since batch jobs normally running remotely
80
80
ip = Unicode ("0.0.0.0" , help = "Address for singleuser server to listen at" ).tag (config = True )
81
81
82
- exec_prefix = Unicode ('sudo -E -u {username}' , \
82
+ exec_prefix = Unicode ('sudo -E -u {username}' ,
83
83
help = "Standard executon prefix (e.g. the default sudo -E -u {username})"
84
84
).tag (config = True )
85
85
86
86
# all these req_foo traits will be available as substvars for templated strings
87
- req_queue = Unicode ('' , \
87
+ req_queue = Unicode ('' ,
88
88
help = "Queue name to submit job to resource manager"
89
89
).tag (config = True )
90
90
91
- req_host = Unicode ('' , \
91
+ req_host = Unicode ('' ,
92
92
help = "Host name of batch server to submit job to resource manager"
93
93
).tag (config = True )
94
94
95
- req_memory = Unicode ('' , \
95
+ req_memory = Unicode ('' ,
96
96
help = "Memory to request from resource manager"
97
97
).tag (config = True )
98
98
99
- req_nprocs = Unicode ('' , \
99
+ req_nprocs = Unicode ('' ,
100
100
help = "Number of processors to request from resource manager"
101
101
).tag (config = True )
102
102
103
- req_ngpus = Unicode ('' , \
103
+ req_ngpus = Unicode ('' ,
104
104
help = "Number of GPUs to request from resource manager"
105
105
).tag (config = True )
106
106
107
- req_runtime = Unicode ('' , \
107
+ req_runtime = Unicode ('' ,
108
108
help = "Length of time for submitted job to run"
109
109
).tag (config = True )
110
110
111
- req_partition = Unicode ('' , \
111
+ req_partition = Unicode ('' ,
112
112
help = "Partition name to submit job to resource manager"
113
113
).tag (config = True )
114
114
115
- req_account = Unicode ('' , \
115
+ req_account = Unicode ('' ,
116
116
help = "Account name string to pass to the resource manager"
117
117
).tag (config = True )
118
118
119
- req_options = Unicode ('' , \
119
+ req_options = Unicode ('' ,
120
120
help = "Other options to include into job submission script"
121
121
).tag (config = True )
122
122
123
- req_prologue = Unicode ('' , \
123
+ req_prologue = Unicode ('' ,
124
124
help = "Script to run before single user server starts."
125
125
).tag (config = True )
126
126
127
- req_epilogue = Unicode ('' , \
127
+ req_epilogue = Unicode ('' ,
128
128
help = "Script to run after single user server ends."
129
129
).tag (config = True )
130
130
@@ -144,7 +144,7 @@ def _req_homedir_default(self):
144
144
def _req_keepvars_default (self ):
145
145
return ',' .join (self .get_env ().keys ())
146
146
147
- batch_script = Unicode ('' , \
147
+ batch_script = Unicode ('' ,
148
148
help = "Template for job submission script. Traits on this class named like req_xyz "
149
149
"will be substituted in the template for {xyz} using string.Formatter. "
150
150
"Must include {cmd} which will be replaced with the jupyterhub-singleuser command line."
@@ -167,7 +167,7 @@ def get_req_subvars(self):
167
167
subvars [t [4 :]] = getattr (self , t )
168
168
return subvars
169
169
170
- batch_submit_cmd = Unicode ('' , \
170
+ batch_submit_cmd = Unicode ('' ,
171
171
help = "Command to run to submit batch scripts. Formatted using req_xyz traits as {xyz}."
172
172
).tag (config = True )
173
173
@@ -234,7 +234,7 @@ def submit_batch_script(self):
234
234
return self .job_id
235
235
236
236
# Override if your batch system needs something more elaborate to read the job status
237
- batch_query_cmd = Unicode ('' , \
237
+ batch_query_cmd = Unicode ('' ,
238
238
help = "Command to run to read job status. Formatted using req_xyz traits as {xyz} "
239
239
"and self.job_id as {job_id}."
240
240
).tag (config = True )
@@ -325,7 +325,7 @@ def poll(self):
325
325
self .clear_state ()
326
326
return 1
327
327
328
- startup_poll_interval = Float (0.5 , \
328
+ startup_poll_interval = Float (0.5 ,
329
329
help = "Polling interval (seconds) to check job state during startup"
330
330
).tag (config = True )
331
331
@@ -526,11 +526,11 @@ class SlurmSpawner(UserEnvMixin,BatchSpawnerRegexStates):
526
526
""" ).tag (config = True )
527
527
528
528
# all these req_foo traits will be available as substvars for templated strings
529
- req_cluster = Unicode ('' , \
529
+ req_cluster = Unicode ('' ,
530
530
help = "Cluster name to submit job to resource manager"
531
531
).tag (config = True )
532
532
533
- req_qos = Unicode ('' , \
533
+ req_qos = Unicode ('' ,
534
534
help = "QoS name to submit job to resource manager"
535
535
).tag (config = True )
536
536
0 commit comments