Skip to content

Commit

Permalink
Add two missing fields
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Dec 11, 2024
1 parent e743373 commit 2bb86d8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ use patch releases for compatibility fixes instead.

## Unreleased

### Added

- Added new field `Cluster.max_session_timeout: Optional[int]`.
- Added new field `JobExecution.retry_ancestor: Optional[str]`.

### Fixed

- Made checking for version upgrades more robust.
Expand Down
1 change: 1 addition & 0 deletions beaker/data_model/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class Cluster(BaseModel):
allow_preemptible_restriction_exceptions: Optional[bool] = None
compute_source: Optional[str] = None
max_job_timeout: Optional[int] = None
max_session_timeout: Optional[int] = None
require_preemptible_tasks: Optional[bool] = None

@field_validator("validated")
Expand Down
1 change: 1 addition & 0 deletions beaker/data_model/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ class JobExecution(BaseModel):
workspace: Optional[str] = None
replica_rank: Optional[int] = None
replica_group_id: Optional[str] = None
retry_ancestor: Optional[str] = None


class JobKind(StrEnum):
Expand Down

0 comments on commit 2bb86d8

Please sign in to comment.