Cloudflare Durable Objects 支持无客户端时继续长任务
threepointone · x · 2026-10-03
Cloudflare 发布 Durable Objects 重大更新(compatibility date 2026-10-01 起,旧日期可用 durableobjectiotaskspreventeviction 标志开启):
- 即使没有客户端连接,pending 的 I/O 操作也能让 Durable Object 持续运行,不再因空闲被回收。
- 覆盖 service binding 请求、跨 DO 的 RPC/fetch 调用、this.ctx.container.monitor(),以及 waitUntil()、pending 的 setTimeout/setInterval。
- 每个 pending 操作可阻止空闲关闭最长 15 分钟,后续操作可续期。
这直接解决了构建 Agent 时的痛点:客户端断开后,Agent 仍可继续调用工具、协调其他 Durable Objects 或等待容器进程,无需依赖原始连接。
「编程与Agent」频道最新
- 网友让 AI 用 computer use 接管 Tinder,自动筛选右滑约会长周末 — cneuralnetwork · 2026-10-03
- Pavan Belagatti 发布 agentic 软件工厂完整实操视频指南 — Pavan_Belagatti · 2026-10-03
- Agent 瓶颈不在模型推理:拆解端到端延迟的真正来源 — AccBalanced · 2026-10-03
- Personal agent 别再订餐厅了,用户真正想要的是自动报税对发票 — sujingshen · 2026-10-03
- Anthropic 为 Claude Code 推出 Mods 系统,开发者可用 JS/TS 重写工具内部 — The Decoder · 2026-10-03
- 牙科诊所 2B Agent 实战之问:LangGraph 自建还是 Hermes 快拼 — ConceptNext5110 · 2026-10-03