Skip to content

Commit 4bfe827

Browse files
JackGuyverSebastian Jack
andauthored
Add heterogeneous job attributes to job dictionary (#192)
Co-authored-by: Sebastian Jack <Sebastian.Jack@dlr.de>
1 parent 88b5129 commit 4bfe827

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pyslurm/pyslurm.pyx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,6 +1829,17 @@ cdef class job:
18291829
Job_dict[u'array_task_id'] = None
18301830
Job_dict[u'array_task_str'] = None
18311831

1832+
if self._record.het_job_id:
1833+
Job_dict[u'het_job_id'] = self._record.het_job_id
1834+
Job_dict[u'het_job_id_set'] = slurm.stringOrNone(
1835+
self._record.het_job_id_set, ''
1836+
)
1837+
Job_dict[u'het_job_offset'] = self._record.het_job_offset
1838+
else:
1839+
Job_dict[u'het_job_id'] = None
1840+
Job_dict[u'het_job_id_set'] = None
1841+
Job_dict[u'het_job_offset'] = None
1842+
18321843
if self._record.array_max_tasks:
18331844
Job_dict[u'array_max_tasks'] = self._record.array_max_tasks
18341845
else:

0 commit comments

Comments
 (0)