Set an environment variable SLURM_BITSTR_LEN to the maximum string length that you want.

Quoting Jun-Xian Leong <[email protected]>:
Hi devs,

I'm working on an external app which accesses the API for Slurm v14.11.

Have noticed that the char* array_task_str returned in slurm_job_info_t is
often truncated when you have large lists of nonsequential jobs.
eg: submitted arrays:
4020,4045,4070,4095,4120,4145,4170,4195,4220,4245,4270,4295,4320,4345,4370,4395,4420,4445,4470,4495,4520,4545,4570,4595
but array_task_str returns
4070,4095,4120,4145,4170,4195,4220,4245,4270,4295,4320,4345,...

Is there any method to obtain the full list of tasks actually scheduled via
the slurm_job_info_t struct?

Cheers,
-JX


--
Morris "Moe" Jette
CTO, SchedMD LLC
Commercial Slurm Development and Support

Reply via email to