Skip to content

Commit 027c64f

Browse files
authored
Prepare for release 24.5.1 (#360)
* pyslurm.JobStep: multiply time limit by 60 in run_time_remaining * Update CHANGELOG * bump pyslurm version to 24.5.1
1 parent 4a118b6 commit 027c64f

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
- New Classes to interact with Database QoS (WIP)
1616
- `pyslurm.db.QualityOfService`
1717
- `pyslurm.db.QualitiesOfService`
18+
19+
## [24.5.1](https://github.com/PySlurm/pyslurm/releases/tag/v24.5.1) - 2024-12-27
20+
21+
### Added
22+
1823
- Added `stats` attribute to both `pyslurm.Job`, `pyslurm.Jobs` and
1924
`pyslurm.db.Jobs`
2025
- Added `pids` attribute to `pyslurm.Job` which contains Process-IDs of the Job
@@ -35,6 +40,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3540
You can keep providing the directory where `libslurm.so` resided as
3641
`$SLURM_LIB_DIR` to pyslurm, and it will automatically find `libslurmfull.so`
3742
from there.
43+
- Added `run_time_remaining` and `elapsed_cpu_time` attributes to `pyslurm.JobStep`
44+
- Added `run_time_remaining` attribute to `pyslurm.Job`
3845

3946
### Fixed
4047

@@ -47,6 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4754

4855
- Breaking: rename `cpu_time` to `elapsed_cpu_time` in `pyslurm.Job` and
4956
`pyslurm.Jobs` classes
57+
- Breaking: rename attribute `alloc_cpus` to just `cpus` in `pyslurm.JobStep`
5058
- Breaking: removed the following attributes from `pyslurm.db.Jobs`:<br>
5159
* `consumed_energy`
5260
* `disk_read`
@@ -69,6 +77,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6977
- return `1` as a value for the `cpus` attribute in `pyslurm.db.Job` when there
7078
is no value set from Slurm's side.
7179

80+
### Removed
81+
82+
- Removed `pyslurm.version()` function. Should use `__version__` attribute directly.
83+
- Removed `--slurm-lib` and `--slurm-inc` parameters to `setup.py`.<br>
84+
`SLURM_LIB_DIR` and `SLURM_INCLUDE_DIR` environment variables should be used instead.
85+
7286
## [24.5.0](https://github.com/PySlurm/pyslurm/releases/tag/v24.5.0) - 2024-11-16
7387

7488
### Added

pyslurm.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%define python3_pkgversion 3.11
22

33
Name: python-pyslurm
4-
Version: 24.5.0
4+
Version: 24.5.1
55
%define rel 1
66
Release: %{rel}%{?dist}
77
Summary: Python interface to Slurm

pyslurm/core/job/step.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ cdef class JobStep:
463463
if limit is None:
464464
return None
465465

466-
return limit - self.run_time
466+
return (limit*60) - self.run_time
467467

468468
@property
469469
def elapsed_cpu_time(self):

pyslurm/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# The last Number "Z" is the current Pyslurm patch version, which should be
66
# incremented each time a new release is made (except when migrating to a new
77
# Slurm Major release, then set it back to 0)
8-
__version__ = "24.5.0"
8+
__version__ = "24.5.1"

0 commit comments

Comments
 (0)