I am currently testing an interactive desktop session using Slurm and have encountered a question regarding the form.yml and submit.yml.erb files.
In my use case, I would like to display the “slurm script” attribute, which includes the #SBATCH directive, along with other attributes such as “CPU” and “hours.” This is intended for users who want to specify the Slurm script precisely.
However, the documentation mentions that submit.yml.erb dynamically processes the form.yml, and it seems that having the YAML file, form.yml, run dynamically by itself may not be possible.
Do you have any suggestions on how I can implement this feature? I have attached the current form on my web portal
Thank you for your response; it’s great to learn that the form can be made dynamic.
I was contemplating a change that would allow the options selected by users in the form to appear dynamically within the form. For example, when a user selects ‘node_type’ as ‘CPU’ and ‘hours’ as ‘4’, the corresponding #SBATCH arguments are generated in the web portal, which advanced users can then flexibly edit.
But, this might not quite be advanced enough for what you are attempting as it sounds like you want the choice in one field to then partially populate a field in another? As in those CPU and TIME selections then populate part of the SBATCH command to select from?
Thank you for the response and sorry for my delayed reply.
I understand it is not recommended to let user provide #SBATCH as OOD is intended to remove barrier of entry to use slurm. I thought it would be an interesting feature for advanced users who want desktop environments.
I will keep checking the documentations and see what I can do. Thanks for the help