Skip to content

Commit 5fe4ef9

Browse files
feat(prebuild): expose snapshot completion percentage in prebuild status
1 parent bd9d963 commit 5fe4ef9

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 160
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-643adebfc36ae5f3c31dc2305867f8259c9ec13420989ec37b78cdf87283a279.yml
3-
openapi_spec_hash: 5d04ebe79f446da15639adddf9bffc9b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-3c080e16ecc8c0377535643430e1abc1425a0b8f474fd6f211cac5e617b7ba28.yml
3+
openapi_spec_hash: 154065951ac8ea5188227ec10c2c10c8
44
config_hash: 8e1b089e9f5af438fd56b523014af4f2

src/gitpod/types/prebuild_status.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ class PrebuildStatus(BaseModel):
3636
logs.
3737
"""
3838

39+
snapshot_completion_percentage: Optional[int] = FieldInfo(alias="snapshotCompletionPercentage", default=None)
40+
"""
41+
snapshot_completion_percentage is the progress of snapshot creation (0-100).
42+
Only populated when phase is SNAPSHOTTING and progress is available from the
43+
cloud provider. This value may update infrequently or remain at 0 depending on
44+
the provider.
45+
"""
46+
3947
status_version: Optional[str] = FieldInfo(alias="statusVersion", default=None)
4048
"""
4149
status_version is incremented each time the status is updated. Used for

0 commit comments

Comments
 (0)