diff --git a/CHANGELOG.md b/CHANGELOG.md index bdc78dd..b5112fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ use patch releases for compatibility fixes instead. ## Unreleased +### Added + +- Added `hostname` constraint. + ## [v1.18.6](https://github.com/allenai/beaker-py/releases/tag/v1.18.6) - 2023-06-02 ### Fixed diff --git a/beaker/data_model/experiment_spec.py b/beaker/data_model/experiment_spec.py index 415c756..ea55b97 100644 --- a/beaker/data_model/experiment_spec.py +++ b/beaker/data_model/experiment_spec.py @@ -296,6 +296,11 @@ class Constraints(BaseModel, frozen=False, extra="allow"): in which case the task will run on any cluster where you have permissions. """ + hostname: Optional[List[str]] = None + """ + Hostname constraints. + """ + def __setitem__(self, key: str, val: List[Any]) -> None: setattr(self, key, val)