Skip to content

Commit 3d1d07d

Browse files
committed
Fixes for 22.5.x due to backporting from 23.2.x
Some changes made in 23.2.x are not available/different for 22.5.x, so they are changed accordingly for 22.5.x
1 parent 2b9be41 commit 3d1d07d

File tree

5 files changed

+0
-36
lines changed

5 files changed

+0
-36
lines changed

pyslurm/core/partition.pxd

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,6 @@ cdef class Partition:
157157
max_cpus_per_node (int):
158158
Max CPUs per Node allowed for Jobs in this Partition
159159
160-
This can also return [UNLIMITED][pyslurm.constants.UNLIMITED]
161-
max_cpus_per_socket (int):
162-
Max CPUs per Socket allowed for Jobs in this Partition
163-
164160
This can also return [UNLIMITED][pyslurm.constants.UNLIMITED]
165161
max_nodes (int):
166162
Max number of Nodes allowed for Jobs

pyslurm/core/partition.pyx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -487,14 +487,6 @@ cdef class Partition:
487487
def max_cpus_per_node(self, val):
488488
self.ptr.max_cpus_per_node = u32(val)
489489

490-
@property
491-
def max_cpus_per_socket(self):
492-
return u32_parse(self.ptr.max_cpus_per_socket)
493-
494-
@max_cpus_per_socket.setter
495-
def max_cpus_per_socket(self, val):
496-
self.ptr.max_cpus_per_socket = u32(val)
497-
498490
@property
499491
def max_nodes(self):
500492
return u32_parse(self.ptr.max_nodes)

pyslurm/db/assoc.pyx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,6 @@ cdef class Association:
243243
def cluster(self, val):
244244
cstr.fmalloc(&self.ptr.cluster, val)
245245

246-
@property
247-
def comment(self):
248-
return cstr.to_unicode(self.ptr.comment)
249-
250-
@comment.setter
251-
def comment(self, val):
252-
cstr.fmalloc(&self.ptr.comment, val)
253-
254246
# uint32_t def_qos_id
255247

256248
# uint16_t flags (ASSOC_FLAG_*)

pyslurm/db/job.pxd

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,6 @@ cdef class Job:
175175
Name of the WCKey for this Job
176176
derived_exit_code (int):
177177
Highest exit code of all the Job steps
178-
extra (str):
179-
Arbitrary string that can be stored with a Job.
180178
181179
Attributes:
182180
steps (pyslurm.db.JobSteps):
@@ -228,8 +226,6 @@ cdef class Job:
228226
Exit code of the job script or salloc.
229227
exit_code_signal (int):
230228
Signal of the exit code for this Job.
231-
failed_node (str):
232-
Name of the failed node that caused the job to get killed.
233229
group_id (int):
234230
ID of the group for this Job
235231
group_name (str):

pyslurm/db/job.pyx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -661,14 +661,6 @@ cdef class Job:
661661
def end_time(self):
662662
return _raw_time(self.ptr.end)
663663

664-
@property
665-
def extra(self):
666-
return cstr.to_unicode(self.ptr.extra)
667-
668-
@extra.setter
669-
def extra(self, val):
670-
cstr.fmalloc(&self.ptr.extra, val)
671-
672664
@property
673665
def exit_code(self):
674666
ec, _ = _get_exit_code(self.ptr.exitcode)
@@ -681,10 +673,6 @@ cdef class Job:
681673

682674
# uint32_t flags
683675

684-
@property
685-
def failed_node(self):
686-
return cstr.to_unicode(self.ptr.failed_node)
687-
688676
def group_id(self):
689677
return u32_parse(self.ptr.gid, zero_is_noval=False)
690678

0 commit comments

Comments
 (0)