From e8eb8c7cebd2c5139141f6b248b70be285e0873d Mon Sep 17 00:00:00 2001 From: Pete Walsh Date: Wed, 13 Nov 2024 18:28:14 -0800 Subject: [PATCH] relax Docker layer upload/download status data model (#291) --- CHANGELOG.md | 4 ++++ beaker/data_model/image.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a36a3b..196efa9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ use patch releases for compatibility fixes instead. ## Unreleased +### Fixed + +- Relaxed requirements on Docker layer upload/download status strings. + ## [v1.32.1](https://github.com/allenai/beaker-py/releases/tag/v1.32.1) - 2024-11-01 ### Added diff --git a/beaker/data_model/image.py b/beaker/data_model/image.py index e59cdf7..30a4b6c 100644 --- a/beaker/data_model/image.py +++ b/beaker/data_model/image.py @@ -90,7 +90,7 @@ class DockerLayerDownloadStatus(StrEnum): class DockerLayerUploadState(BaseModel): id: str - status: DockerLayerUploadStatus + status: str progress_detail: DockerLayerProgress progress: Optional[str] = None @@ -101,7 +101,7 @@ def _validate_status(cls, v: str) -> str: class DockerLayerDownloadState(BaseModel): id: str - status: DockerLayerDownloadStatus + status: str progress_detail: DockerLayerProgress progress: Optional[str] = None