Raise builder complex run timeout
All checks were successful
build / build (push) Successful in 11s

This commit is contained in:
robert
2026-06-08 08:14:10 -03:00
parent f132394aa7
commit 293550b56f
4 changed files with 16 additions and 8 deletions

View File

@@ -39,7 +39,8 @@ class BuilderConfig(BaseModel):
_URL_RE = re.compile(r"https?://[a-zA-Z0-9._-]+\.[a-zA-Z]{2,}[\w/?#%&=.-]*")
DEEPAGENTS_RECURSION_LIMIT = 500
BUILDER_WALL_TIMEOUT_SECONDS = 25 * 60
BUILDER_WALL_TIMEOUT_SECONDS = 60 * 60
BUILDER_GRANT_RUN_TIMEOUT_SECONDS = BUILDER_WALL_TIMEOUT_SECONDS - 60
class AgentBuilder(A2AAgent[BuilderConfig, NoAuth]):
@@ -49,7 +50,7 @@ class AgentBuilder(A2AAgent[BuilderConfig, NoAuth]):
"Writes the project into the user's workspace, validates it in a "
"sandbox, then ships it via the control plane."
)
version = "0.1.7"
version = "0.1.8"
config_model = BuilderConfig
auth_model = NoAuth
@@ -76,14 +77,14 @@ class AgentBuilder(A2AAgent[BuilderConfig, NoAuth]):
),
tags=["builder", "scaffold", "deepagents", "meta"],
stream=True,
timeout_seconds=1800,
timeout_seconds=BUILDER_WALL_TIMEOUT_SECONDS,
cost_class="expensive",
grant_mode="read_write_overlay",
grant_allow_patterns=("agents/{name}/**",),
grant_outputs_prefix="agents/{name}/",
grant_write_prefixes=("agents/{name}/",),
grant_ttl_seconds=1800,
grant_run_timeout_seconds=1740,
grant_ttl_seconds=BUILDER_WALL_TIMEOUT_SECONDS,
grant_run_timeout_seconds=BUILDER_GRANT_RUN_TIMEOUT_SECONDS,
grant_approval_timeout_seconds=180,
grant_scope_approval_timeout_seconds=120,
)