Skip to content

Commit

Permalink
Fixes for 22.5.x due to backporting from 23.2.x
Browse files Browse the repository at this point in the history
Some changes made in 23.2.x are not available/different for 22.5.x, so
they are changed accordingly for 22.5.x
  • Loading branch information
tazend committed Jul 19, 2023
1 parent 2b9be41 commit 3d1d07d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 36 deletions.
4 changes: 0 additions & 4 deletions pyslurm/core/partition.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,6 @@ cdef class Partition:
max_cpus_per_node (int):
Max CPUs per Node allowed for Jobs in this Partition
This can also return [UNLIMITED][pyslurm.constants.UNLIMITED]
max_cpus_per_socket (int):
Max CPUs per Socket allowed for Jobs in this Partition
This can also return [UNLIMITED][pyslurm.constants.UNLIMITED]
max_nodes (int):
Max number of Nodes allowed for Jobs
Expand Down
8 changes: 0 additions & 8 deletions pyslurm/core/partition.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -487,14 +487,6 @@ cdef class Partition:
def max_cpus_per_node(self, val):
self.ptr.max_cpus_per_node = u32(val)

@property
def max_cpus_per_socket(self):
return u32_parse(self.ptr.max_cpus_per_socket)

@max_cpus_per_socket.setter
def max_cpus_per_socket(self, val):
self.ptr.max_cpus_per_socket = u32(val)

@property
def max_nodes(self):
return u32_parse(self.ptr.max_nodes)
Expand Down
8 changes: 0 additions & 8 deletions pyslurm/db/assoc.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,6 @@ cdef class Association:
def cluster(self, val):
cstr.fmalloc(&self.ptr.cluster, val)

@property
def comment(self):
return cstr.to_unicode(self.ptr.comment)

@comment.setter
def comment(self, val):
cstr.fmalloc(&self.ptr.comment, val)

# uint32_t def_qos_id

# uint16_t flags (ASSOC_FLAG_*)
Expand Down
4 changes: 0 additions & 4 deletions pyslurm/db/job.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ cdef class Job:
Name of the WCKey for this Job
derived_exit_code (int):
Highest exit code of all the Job steps
extra (str):
Arbitrary string that can be stored with a Job.
Attributes:
steps (pyslurm.db.JobSteps):
Expand Down Expand Up @@ -228,8 +226,6 @@ cdef class Job:
Exit code of the job script or salloc.
exit_code_signal (int):
Signal of the exit code for this Job.
failed_node (str):
Name of the failed node that caused the job to get killed.
group_id (int):
ID of the group for this Job
group_name (str):
Expand Down
12 changes: 0 additions & 12 deletions pyslurm/db/job.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -661,14 +661,6 @@ cdef class Job:
def end_time(self):
return _raw_time(self.ptr.end)

@property
def extra(self):
return cstr.to_unicode(self.ptr.extra)

@extra.setter
def extra(self, val):
cstr.fmalloc(&self.ptr.extra, val)

@property
def exit_code(self):
ec, _ = _get_exit_code(self.ptr.exitcode)
Expand All @@ -681,10 +673,6 @@ cdef class Job:

# uint32_t flags

@property
def failed_node(self):
return cstr.to_unicode(self.ptr.failed_node)

def group_id(self):
return u32_parse(self.ptr.gid, zero_is_noval=False)

Expand Down

0 comments on commit 3d1d07d

Please sign in to comment.