Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for release 24.5.1 #360

Merged
merged 3 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading