Re: [slurm-users] how to print all the key-values of "job_desc" in job_submit.lua?

2021-03-29 Thread Bas van der Vlies
On 29/03/2021 13:03, Diego Zuccato wrote: Il 29/03/21 09:35, taleinterve...@sjtu.edu.cn ha scritto: Why the loop code cannot get the content in job_desc? And what is the correct way to print all its content without manually specify each key? I already reported it quite some time ago. Seems

Re: [slurm-users] how to print all the key-values of "job_desc" in job_submit.lua?

2021-03-29 Thread Chrysovalantis Paschoulas
Hi all! I had the same problem, so I can feel your pain.. You can find all available fields of job_desc (and job_rec) in this file: ``` src/plugins/job_submit/lua/job_submit_lua.c ``` and then as a workaround, I was just printing specific fields for debugging.. Best Regards, Valantis On

Re: [slurm-users] how to print all the key-values of "job_desc" in job_submit.lua?

2021-03-29 Thread Diego Zuccato
Il 29/03/21 09:35, taleinterve...@sjtu.edu.cn ha scritto: > Why the loop code cannot get the content in job_desc? And what is the > correct way to print all its content without manually specify each key? I already reported it quite some time ago. Seems pairs() is not working. -- Diego Zuccato

[slurm-users] how to print all the key-values of "job_desc" in job_submit.lua?

2021-03-29 Thread taleintervenor
Hello, Because I'm not sure about the relations between fields of job_desc structure and sbatch parameter, I want to print all the fields and their values in job_desc when testing job_submit.lua. But the following code add to job_submit.lua failed to iterate through job_desc, the for loop