I’m trying to configure a checkbox for some of my applications for users to request exclusive use of a node for running his/her Slurm job (i.e., the
--exclusive option for
sbatch.) I’ve been able to get the checkbox to appear on the submission form, but when I attempt to submit the job, I get errors. I am sure it’s because I don’t know what to put in my
submit.yml.erb file, having been unable to find an example in Discourse that appears relevant. I’ve tried several different things, but here is my latest failure, which results in an Internal Server Error:
--- batch_connect: template: vnc script: queue_name: <%= custom_queue %> native: - "-N" - "<%= bc_num_slots.blank? ? 1 : bc_num_slots.to_i %>" - "--ntasks-per-node" - "<%= bc_num_cores.blank? ? 1 : bc_num_cores.to_i %>" - "--mem" - "<%= bc_num_memory.blank? ? 6144 : bc_num_memory.to_i*1024 %>" - "--exclusive" - "<%= ! bc_exclusive.to_i.zero? ? 1 %><% unless bc_exclusive.blank %>"
What do I need to do differently?