feat: support workers in run config (#4014)

Cherry-pick of #3992 to release-0.3.x

Adds support for configuring the number of workers in run.yaml
configuration files.

Co-authored-by: ehhuang <ehhuang@users.noreply.github.com>
This commit is contained in:
Ashwin Bharambe 2025-10-31 13:48:55 -07:00 committed by GitHub
parent b088665227
commit 9f1e4a07c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -471,6 +471,10 @@ class ServerConfig(BaseModel):
"- true: Enable localhost CORS for development\n"
"- {allow_origins: [...], allow_methods: [...], ...}: Full configuration",
)
workers: int = Field(
default=1,
description="Number of workers to use for the server",
)
class StackRunConfig(BaseModel):