Skip to content

Commit

Permalink
Prepare for release 24.5.1 (#360)
Browse files Browse the repository at this point in the history
* pyslurm.JobStep: multiply time limit by 60 in run_time_remaining

* Update CHANGELOG

* bump pyslurm version to 24.5.1
  • Loading branch information
tazend authored Dec 27, 2024
1 parent 4a118b6 commit 027c64f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- New Classes to interact with Database QoS (WIP)
- `pyslurm.db.QualityOfService`
- `pyslurm.db.QualitiesOfService`

## [24.5.1](https://github.com/PySlurm/pyslurm/releases/tag/v24.5.1) - 2024-12-27

### Added

- Added `stats` attribute to both `pyslurm.Job`, `pyslurm.Jobs` and
`pyslurm.db.Jobs`
- Added `pids` attribute to `pyslurm.Job` which contains Process-IDs of the Job
Expand All @@ -35,6 +40,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
You can keep providing the directory where `libslurm.so` resided as
`$SLURM_LIB_DIR` to pyslurm, and it will automatically find `libslurmfull.so`
from there.
- Added `run_time_remaining` and `elapsed_cpu_time` attributes to `pyslurm.JobStep`
- Added `run_time_remaining` attribute to `pyslurm.Job`

### Fixed

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

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

### Removed

- Removed `pyslurm.version()` function. Should use `__version__` attribute directly.
- Removed `--slurm-lib` and `--slurm-inc` parameters to `setup.py`.<br>
`SLURM_LIB_DIR` and `SLURM_INCLUDE_DIR` environment variables should be used instead.

## [24.5.0](https://github.com/PySlurm/pyslurm/releases/tag/v24.5.0) - 2024-11-16

### Added
Expand Down
2 changes: 1 addition & 1 deletion pyslurm.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%define python3_pkgversion 3.11

Name: python-pyslurm
Version: 24.5.0
Version: 24.5.1
%define rel 1
Release: %{rel}%{?dist}
Summary: Python interface to Slurm
Expand Down
2 changes: 1 addition & 1 deletion pyslurm/core/job/step.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ cdef class JobStep:
if limit is None:
return None

return limit - self.run_time
return (limit*60) - self.run_time

@property
def elapsed_cpu_time(self):
Expand Down
2 changes: 1 addition & 1 deletion pyslurm/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# The last Number "Z" is the current Pyslurm patch version, which should be
# incremented each time a new release is made (except when migrating to a new
# Slurm Major release, then set it back to 0)
__version__ = "24.5.0"
__version__ = "24.5.1"

0 comments on commit 027c64f

Please sign in to comment.