容器沙箱的idle_timeout是如何判定的?是否有额外的判定细节? #3511
Unanswered
xuqingyan0217
asked this question in
Q&A
Replies: 1 comment
-
回答:容器沙箱的
|
| 问题 | 答案 |
|---|---|
| idle_timeout 如何判定? | 纯时间戳:current_time - _last_activity[sandbox_id] > idle_timeout |
| 检查频率? | 每 60 秒 |
| stdout/stderr 是否影响? | 不影响 DeerFlow 的 idle timeout 逻辑 |
| 为什么文件重定向时沙箱活得更久? | 可能是 AIO sandbox 容器内部的进程管理行为,非 DeerFlow 控制 |
| 为什么 DEVNULL 时沙箱立即消失? | 可能是 AIO 容器检测不到活跃进程而自行退出,非 idle timeout 触发 |
5. 建议
如果你想确保后台任务不被沙箱超时中断,有两个方向:
- 增大
idle_timeout或设为0(禁用自动清理) - 检查 AIO sandbox 容器自身的配置,了解它如何管理子进程生命周期(这是 agent-infra/sandbox 项目的范畴)
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我把idle_timeout设为1h,agent调用沙箱执行脚本时,脚本内部是一个异步的run_pipeline,所以脚本很快就会结束,主要是做任务提交。
可我实际测试下来,任务已经超过了1h,沙箱还在,我只是把后台 worker 的 stdout/stderr 挂到 run.log;而如果我直接接到DEVNULL,沙箱会在脚本提交任务后直接消失。
Beta Was this translation helpful? Give feedback.
All reactions