PySlurm / pyslurm

Python Interface to Slurm
https://pyslurm.github.io
GNU General Public License v2.0
474 stars 116 forks source link

missing job field 'comment' #244

Open Whitehorse2 opened 1 year ago

Whitehorse2 commented 1 year ago

Details

Issue

From the pyslurm job database output, i am missing the 'comment' and tmp disk section.

Why is the data missing and can it be added?

Thanks in advance

tazend commented 1 year ago

Hi @Whitehorse2

just had a look, yeah fetching the comment from the database output just isn't implemented currently. I can check it out on the weekend.

Can you clarify what you mean with "tmp disk"? Maybe you can tell me the exact name of the property you want to retrieve? (by checking with sacct -e)

Whitehorse2 commented 1 year ago

@tazend : Thank you, could you integrate this value at branch slurm-20.11.8 ? I mean the MIN_TMP_DISK value, visible at squeue, but I could not find it at sacct.

tazend commented 1 year ago

Hi @Whitehorse2

I have added a "comment" field in the slurmdb jobs output in the branch you mentioned (https://github.com/PySlurm/pyslurm/commit/b3cc3656318221a8bfdcc8224a8e1b9293411298)

In regards to the MIN_TMP_DISK - for Jobs fetched from the database this information isn't available.

But for jobs which are still running/pending, you can use job().get() and then the field is called pn_min_tmp_disk. (that what squeue reports)