mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-18 20:14:44 +08:00
fix: fix aio sandbox shutdown bug
This commit is contained in:
@@ -161,8 +161,8 @@ class ExtensionsConfig(BaseModel):
|
||||
"""
|
||||
skill_config = self.skills.get(skill_name)
|
||||
if skill_config is None:
|
||||
# Default to enable for public skill, disable for custom
|
||||
return skill_category == "public"
|
||||
# Default to enable for public & custom skill
|
||||
return skill_category in ('public', 'custom')
|
||||
return skill_config.enabled
|
||||
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user