fix: fix aio sandbox shutdown bug

This commit is contained in:
hetaoBackend
2026-01-30 21:58:43 +08:00
parent c07c0228f6
commit 43ee8a2968
11 changed files with 1271 additions and 4 deletions

View File

@@ -21,6 +21,7 @@ class SandboxConfig(BaseModel):
base_url: If set, uses existing sandbox instead of starting new container
auto_start: Whether to automatically start Docker container (default: true)
container_prefix: Prefix for container names (default: deer-flow-sandbox)
idle_timeout: Idle timeout in seconds before sandbox is released (default: 600 = 10 minutes). Set to 0 to disable.
mounts: List of volume mounts to share directories with the container
environment: Environment variables to inject into the container (values starting with $ are resolved from host env)
"""
@@ -49,6 +50,10 @@ class SandboxConfig(BaseModel):
default=None,
description="Prefix for container names",
)
idle_timeout: int | None = Field(
default=None,
description="Idle timeout in seconds before sandbox is released (default: 600 = 10 minutes). Set to 0 to disable.",
)
mounts: list[VolumeMountConfig] = Field(
default_factory=list,
description="List of volume mounts to share directories between host and container",