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:
Notice the <%= is lined up with the previous line’s -. You might also be able to do either of these below, though I wasn’t able to test this successfully from the command line, because Rails adds these extra tags.
Clearly, I’m going to have to take some time to learn to write YAML code. With my current rudimentary knowledge, I wouldn’t have figured out the syntax you’ve shared, so I’m much obliged. I went with the second suggestion (I like “more readable”), and it works like a charm.
Thank you and the rest of the OOD community for your patience and support. I do believe I’m going to meet my deadline, which is tomorrow afternoon.