Closed tazend closed 11 months ago
@robgics
in the allocated_gres
property, could you try and insert the following before the return statement:
print(cstr.to_unicode(self.info.gres_used))
then recompile and see what it says (and post it here)? So it will print out the literal string that is in node_info_t for gres_used that another function uses to create a propert dict from it. If something is in the string, then probably that cstr.gres_to_dict
function is faulty.
Found the error. There was a flag missing (slurm.SHOW_DETAIL) that is required to have this gres_used
string contain any info.
I'll make a fix for it tomorrow
Thanks for finding it so quick. Woulda taken me days or more.
Allocated gres and configured gres are coming out now, thanks!
@robgics
Discussed in https://github.com/orgs/PySlurm/discussions/314