Skip to content

Commit 1cfa23b

Browse files
Add "prefer" field to slurm JobProperties (#244)
Co-authored-by: Nicholas Devenish <[email protected]>
1 parent 5d1dfcf commit 1cfa23b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

HISTORY.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ History
44

55
Unreleased
66
----------
7+
* Add the slurm "prefer" field to ``slurm.models.JobProperties``. (`#244 <https://github.com/DiamondLightSource/python-zocalo/pull/244>`_)
78

89
0.30.1 (2023-08-24)
910
-------------------

src/zocalo/util/slurm/models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ class Config:
188188
partition: Optional[str] = Field(
189189
None, description="Request a specific partition for the resource allocation."
190190
)
191+
prefer: Optional[str] = Field(
192+
None,
193+
description="Comma delimited list of features for scheduler to prefer but not a strict requirement like a constraint. Value can be used for job submission but is only displayed for PENDING jobs.",
194+
)
191195
priority: Optional[str] = Field(
192196
None, description="Request a specific job priority."
193197
)

0 commit comments

Comments
 (0)