mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 17:38:45 +00:00
Tune code execution timeouts
Raise bundled defaults and fallback timeout tuples for normal and output runtimes so builds, installs, servers, tests, and training jobs have room to stream or poll without premature timeout. Document the long-running work behavior while keeping normal command execution bounded and directing extended work toward output polling.
This commit is contained in:
1 parent
7ad9a44e76
commit
e05a285dcf
4 files changed
+11
-9
No files matched your search
@@ -228,7 +228,7 @@ class CodeExecution(Tool):
|
||||
first_output_timeout=30,
|
||||
between_output_timeout=15,
|
||||
dialog_timeout=5,
|
||||
max_exec_timeout=180,
|
||||
max_exec_timeout=240,
|
||||
sleep_time=0.5,
|
||||
prefix="",
|
||||
timeouts: dict | None = None,
|
||||
@@ -546,8 +546,8 @@ def _get_config(agent) -> dict:
|
||||
"ssh_port": int(cfg.get("ssh_port", 55022)),
|
||||
"ssh_user": str(cfg.get("ssh_user", "root")),
|
||||
"ssh_pass": str(cfg.get("ssh_pass", "")),
|
||||
"code_exec_timeouts": _parse_timeouts(cfg, "code_exec", (30, 15, 180, 5)),
|
||||
"output_timeouts": _parse_timeouts(cfg, "output", (90, 45, 300, 5)),
|
||||
"code_exec_timeouts": _parse_timeouts(cfg, "code_exec", (30, 15, 240, 5)),
|
||||
"output_timeouts": _parse_timeouts(cfg, "output", (120, 60, 600, 5)),
|
||||
"prompt_patterns": _parse_patterns(cfg.get("prompt_patterns", "")),
|
||||
"dialog_patterns": _parse_patterns(cfg.get("dialog_patterns", ""), re.IGNORECASE),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user