Closed multimeric closed 1 year ago
Hi,
you have a pyslurm.db.Job
instance, i.e. an object that represents a database Job, which does not have these attributes.
The attributes you want are only available on a pyslurm.Job
instance, i.e. jobs that are still present in slurmctlds memory
If you do:
job = pyslurm.Job.load(<job_id>)
it should work.
Ah, many thanks. I've made this mistake several times which is largely my fault but I guess it poses the question about whether the actual class names should be slightly different from each other.
Details
Issue
The following fields are listed as attributes of a
Job
object in the documentation but aren't present on aJob
I get fromJob.load
orJobs.load
:For example: