File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,7 @@ def parse_job_id(self, output):
187
187
return output
188
188
189
189
def cmd_formatted_for_batch (self ):
190
+ """The command which is substituted inside of the batch script"""
190
191
return ' ' .join (['batchspawner-singleuser' ] + self .cmd + self .get_args ())
191
192
192
193
@gen .coroutine
@@ -230,8 +231,11 @@ def _get_batch_script(self, **subvars):
230
231
@gen .coroutine
231
232
def submit_batch_script (self ):
232
233
subvars = self .get_req_subvars ()
234
+ # `cmd` is submitted to the batch system
233
235
cmd = ' ' .join ((format_template (self .exec_prefix , ** subvars ),
234
236
format_template (self .batch_submit_cmd , ** subvars )))
237
+ # `subvars['cmd']` is what is run _inside_ the batch script,
238
+ # put into the template.
235
239
subvars ['cmd' ] = self .cmd_formatted_for_batch ()
236
240
if hasattr (self , 'user_options' ):
237
241
subvars .update (self .user_options )
You can’t perform that action at this time.
0 commit comments