Skip to content

Commit 7d127f0

Browse files
Andrey Cheptsovclaude
andcommitted
Fix SubmitBody.log_quota_hour serialization with Field(include=True)
Without Field(include=True), pydantic's .json() drops fields that lack an include annotation when other fields in the model use Field(include=...). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9bed338 commit 7d127f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dstack/_internal/server/schemas/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class SubmitBody(CoreModel):
103103
cluster_info: Annotated[Optional[ClusterInfo], Field(include=True)]
104104
secrets: Annotated[Optional[Dict[str, str]], Field(include=True)]
105105
repo_credentials: Annotated[Optional[RemoteRepoCreds], Field(include=True)]
106-
log_quota_hour: Optional[int] = None
106+
log_quota_hour: Annotated[Optional[int], Field(include=True)] = None
107107
"""Maximum bytes of log output per hour. None means unlimited."""
108108
# TODO: remove `run_spec` once instances deployed with 0.19.8 or earlier are no longer supported.
109109
run_spec: Annotated[

0 commit comments

Comments
 (0)