Method: CodeRunner::Slurm#execute
- Defined in:
- lib/coderunner/system_modules/slurm.rb
#execute ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/coderunner/system_modules/slurm.rb', line 31 def execute if use_launcher return execute_launcher else File.open(batch_script_file, 'w'){|file| file.puts batch_script + run_command + "\n"} _pid = %x[sbatch #{batch_script_file}].to_i return nil end end |