Skip to content

Commit

Permalink
Add synchronized_start_timeout flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mewil committed Apr 29, 2024
1 parent aa00c73 commit 070d156
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ use patch releases for compatibility fixes instead.

## Unreleased

### Added

- Added `synchronized_start_timeout` field to `TaskSpec`.

## [v1.26.6](https://github.com/allenai/beaker-py/releases/tag/v1.26.6) - 2024-04-24

### Added
Expand Down
7 changes: 7 additions & 0 deletions beaker/data_model/experiment_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,13 @@ class TaskSpec(BaseModel, frozen=False):
Determines if whole experiment should fail if this task failures.
"""

synchronized_start_timeout: Optional[str] = None
"""
If set, jobs in the replicated task will wait to start, up to the specified timeout,
until all other jobs are also ready. If the timeout is reached, the job will be canceled.
Must be greater than zero and less than or equal to 48 hours.
"""

@classmethod
def new(
cls,
Expand Down

0 comments on commit 070d156

Please sign in to comment.