提供案例
billflare.

原帖报告已收录: 金额与进展来自原帖及关联回复。

Durable Objectsshmily7-durable-object-alarm

浮世绘:Durable Object alarm 死循环,报告账单 US$10,811.41。

@shmily7 报告无人使用的测试项目中 Durable Object alarm 陷入循环,后称为避免服务停用已全额支付 US$10,811.41。Cloudflare 人员 Ashley Peacock 公开回复称正在内部跟进,会再回复。Cloudflare 的 Dane Knecht 随后回复称他也已升级处理。10 月 9 日作者宣布事件结案:称在 Ashley Peacock 帮助下,Cloudflare 已决定全额退还 Bug 故障期间产生的费用,款项仍在等待到账,并附上收到的工单回复全文。

发生了什么

报告原因
无终止循环
事件日期
日期未记录
首次报告
2026-10-06 14:40 UTC
账单处置
退款已办理,待到账作者报告
案例进展
已解决作者报告
Cloudflare 公开回复
已记录人员回复

最新报告进展

作者先称减免申请被拒,后报告已全额支付 US$10,811.41。Ashley Peacock 称正在内部跟进。作者解释收到即将停服的警告邮件后,为避免中断先支付账单,并称有新进展会公开更新。Ashley 随后称有消息会私信告知。Dane Knecht 回复称他也已升级处理。10 月 9 日作者宣布结案,报告 Cloudflare 已决定全额退还 Bug 故障期间产生的费用,款项等待到账。他公开的工单回复写明退款 US$10,701.41,范围为 9 月 23 日至 10 月 6 日的 Durable Objects 费用;作者称绝大部分可以退回。

查看时间线中的最新进展

原始来源

每项来源链接对应的报告或回复。

案例时间线

  1. 报告 alarm 循环账单

    到 𝕏 阅读

    作者报告测试项目中的 alarm 循环产生约一万刀费用与 6 万亿次读写。

    浮世绘

    @shmily7 · 𝕏 原帖

    遭遇Cloudflare帐单刺客,爆了一万刀的帐单,原因是一个项目 Durable Object alarm 死循环,读写了6万亿次,Viber Codeing误我。
  2. 作者讨论申请减免

    到 𝕏 阅读

    作者称可以申请一次性减免,并打算尝试。

    浮世绘

    @shmily7 · 𝕏 原帖

    可以申请一次性减免,先试试看。如果不行的话,就只能买一个最贵的教训了。 以后Durable Objects要自部署类似的服务,不能直接用Cloudflare的了。
  3. 作者澄清万刀是账单

    到 𝕏 阅读

    作者回复“月入万刀”的评论,称万刀是被收取的账单,不是收入。

    浮世绘

    @shmily7 · 𝕏 原帖

    是被刺万刀,不是收入万刀。
  4. 作者称信用卡无力支付

    到 𝕏 阅读

    作者称信用卡无法支付这笔账单。

    浮世绘

    @shmily7 · 𝕏 原帖

    没有,信用卡付不了这么多
  5. 作者补充编程工具上下文

    到 𝕏 阅读

    作者称这段代码由 Codex 生成。

    浮世绘

    @shmily7 · 𝕏 原帖

    这他娘的是Codex的锅,以后不要随便用这种非Sota模型。 pic.twitter.com/6ITjf3gaxY
  6. 公开请求善意减免

    到 𝕏 阅读

    作者向 CloudflareHelp 请求善意减免,并说明团队只有一人、项目无人使用。

    浮世绘

    @shmily7 · 𝕏 原帖

    @CloudflareHelp 我是一个人的小团队,AI代码写出来的大BUG,这个项目是一个无人使用的测试项目,能否善意减免吗,因为你们不能设计消耗硬顶,现在这个金额远超我的承受能力范围了。
  7. 作者称未获减免

    到 𝕏 阅读

    作者写道:“不肯少啊!”,并附上一张截图。

    浮世绘

    @shmily7 · 𝕏 原帖

    天塌了啊,不肯少啊! pic.twitter.com/kOQKJMkrV6
  8. 作者报告全额付款

    到 𝕏 阅读

    作者报告已全额支付 US$10,811.41,称减免工单收到反复的自动回复,并计划将项目迁至 VPS 自部署。

    浮世绘

    @shmily7 · 𝕏 原帖

    最新进展: - 已全额支付Cloudflare帐单(US$10,811.41),购买的是人生第二贵的教训 - 申请减免的工单,一直是机器人在循环回复(BTW,用的还是Moonshot的模型,你们为什么不用Claude?) - X上和其他渠道联系Cloudflare官方人员均表示:只能帮你“看看”,仅此而已 -… https://t.co/OSribKnMso pic.twitter.com/sdr7GMe5os
  9. Ashley Peacock 称正在内部跟进

    到 𝕏 阅读

    Cloudflare 人员 Ashley Peacock 回复付款进展,称正在内部跟进,需要经过几位人员,并会尽快回复作者。

    Ashley Peacock

    @ashleypeacock · 𝕏 原帖

    I am working on it internally, these things take a little bit of time but I promise I’m looking into it - it just has to go through a few people, and one of those was off sick yesterday, I’ll get back to you soon
  10. 作者说明为何先付款

    到 𝕏 阅读

    作者向 Ashley 道谢,称收到多封即将停服的警告邮件后,为避免服务中断先支付了账单,并表示有新进展或积极结果会在 X 公开更新。

    浮世绘

    @shmily7 · 𝕏 原帖

    I'm glad to hear back from you, and I appreciate your efforts. I'm happy to wait patiently, but unfortunately, my service can't wait. I've already received numerous emails warning that my service is about to be suspended, so I went ahead and paid the bill to avoid any…
  11. Ashley 称有消息会私信

    到 𝕏 阅读

    Ashley 回应作者的说明,为带来的压力致歉,并称有消息时会私信告知。

    Ashley Peacock

    @ashleypeacock · 𝕏 原帖

    Understood, apologies for the stress caused - I’ll DM you when I have some news
  12. Dane Knecht 称也已升级处理

    到 𝕏 阅读

    Cloudflare 的 Dane Knecht 回复 Ashley Peacock 与作者:“I just escalated also”。

    Dane Knecht 🦭

    @dok2001 · 𝕏 原帖

    I just escalated also
  13. Ashley Peacock 谈账单硬上限

    到 𝕏 阅读

    在该串回复其他用户时,Ashley Peacock 称账单硬上限即将推出,他也在看 Durable Objects 侧还能做什么,但因存在正当用例,这并不容易解决。

    Ashley Peacock

    @ashleypeacock · 𝕏 原帖

    Hard billing caps are coming soon, and I’m seeing if there’s more we can do on the DO side but it’s not straightforward to solve (e.g. there are legitimate use cases we need to account for)
  14. ServerlessHorrors 收录

    打开原始来源

    ServerlessHorrors(Andras Bacsai)整理作者原帖与后续:alarm 死循环产生 6 万亿次读写,作者全额支付 US$10,811.41,减免工单只收到机器人回复;该文写明未获退款。同日该文被提交到 Hacker News(item 50009654)。

  15. 作者宣布结案并报告退款

    到 𝕏 阅读

    作者向 Ashley Peacock 致谢,报告 Cloudflare 已决定全额退还 Bug 故障期间产生的费用,款项等待到账。他附上署名 Daniel、Cloudflare Support 的工单回复全文:退款 US$10,701.41,覆盖 9 月 23 日至 10 月 6 日的 Durable Objects 费用;并解释 alarm 将自身重排到 Date.now(),约每秒触发 600 次,费用主要来自 SQLite 行读写。作者另称此前未设置除默认 10 USD 提示外的消费提醒,付款靠向银行申请临时提额,死循环来自 8 月 29 日一次 Codex 提交。

    浮世绘

    @shmily7 · 𝕏 原帖

    Cloudflare天价帐单事件结案: 非常感谢在 @ashleypeacock 的帮助下,Cloudflare已经决定全额退还在Bug故障期间所产生的费用(等待到帐中),最后附上Cloudflare最后回复的工单全文,非常详细的解释了Bug的过程的原因。 这里回答一些评论问的比较多的问题: 1、你没有设置消费提醒吗?Cloudflare消费没有硬上限吗? 是的,我没有设置消费提醒,默认只有一个系统自带的10USD的提示,而我每个月的消费大概在100USD-300USD左右,甚至在此事之前我并不清楚设置消费提醒这个问题非常重要。 如果你在使用Cloudflare的服务,强烈建议您也设置一个到多个提醒配置:https://t.co/98KEoySvFh<你的帐户ID>/billing/billable-usage (Ps: 在AI的提示下它要求我配置100、300、500、1000、3000五个档位+多个邮箱的提醒) Cloudflare目前是后付费模式,也没有消费上限配置选项,所以一旦产生消费,是需要您支付的,但据官方透露未来不久会上线这个配置功能。 2、如果不付帐单会怎么样?直接跑路行不行? 理论上,当然可以,但我们小时候看古惑仔里里面有一句台词:出来混,有错就要认,挨打要立正。承认错误、承担责任,我认为是一个成年人的表现,当然,实在付不起就算了。 (好了装逼结束)除了上述原因,主要还是因为我的主力项目还在Cloudflare上解析和做负载均衡,另外在最近几个月时间内,大概快速Viber了几十个业余项目,所以哪怕迁移也没有这么快能完成,总的来说,还是要感谢Cloudflare这种基建设施,能够超级快速Ship各种新项目,能快速验证各种想法,如果AI是挥动魔法棒的那种能力,那Cloudfalre就是接住这些魔法产物的地方。 所以最终我还是付了,我的信用卡并没有这么多钱,是跟银行申请临时提额来实现的,现在知道可以退绝大部份的话,就和小时候在衣柜旧衣服里面翻出钱来的感觉差不多,完全是一种惊喜的感觉。 3、到底写了些什么项目?怎么能闯这么大祸?用Ai写代码不检查,你就是活该吧? 首先,我是看到Cloudflare更新了Sandbox的版本,于是我想测试一下,如果将某些开发任务分解为多个子任务,然后利用Sandbox的并发处理能力,能不能大幅度的提升开发效率?基于这个假设,我让AI迭代了几个不同的版本(包括一个主Agent来分解任务、多Agent自行沟通协调任务队列等不同的逻辑),但最终的结论是并没有明显的效率提升(可能是因为我能力问题)。 于是这个项目就在最后一次更新之后就搁置了,但它仍然部署在Cloudflare上,尽管无任何人使用,但在8.29日,也就是一个月前使用Codex的一次提交中,写了一个DO无限死循环的Bug,而这个Bug会在23天之后被唤醒,开始无限循环,产生消费。 我是一个大龄非科班程序员(自以为),没有在大厂工作过,是30岁之后完全自学的编程,学过Python基础和能看懂一点点TS,以前就是那种:我有一个想法,只差一个程序员的人,于是后来就自己学编程写自己想要的东西,写了几年,做了一些项目,赚了一点钱。 在彻底拥抱AI之后,就放飞自我了。所有代码都是不看不检查的,只描述需求和最终验收,并不是不想看,因为你真让我看我也看不懂,我只关心它能做到什么程度,能不能实现我要的效果,捅出篓子再说。 之前一直是使用Claude Code + Fable系列模型开发的,也从来没有出现过严重的问题,直到上个月底手上没有可用的帐号了,才不得不使用了Codex+GPT Sol 5.6模型开发,真就用了几天就出事了,这是一种惯性依赖,在配对什么智力程度的模型,就需要做对应程度的检查。 所以最终我买单也我也认的。 4、你说这是第二贵的教训,那人生第一贵的教训是什么? 评论中有人回复:结婚; 哈哈,当然不是,这是另一个故事,以后有机会再分享详情,主要是使用了非自己Kyc的币安帐户3年,收了一些钱在里面,突然被币安强制人脸认证,只能找原KYC的持有人协商找回,那一次损失的原本大概是3万刀,最终追回不到一半。 工单原文(技术细节可以看这里): Hi **, I want to start with an apology, and it's not a form-letter one. The experience you had — a five-figure bill, a support queue that didn't move fast enough on it, having to pay in full while waiting — that's a failure on our end, not just a billing edge case. I'm sorry it went that way. Your refund has been processed in full: US$10,701.41, covering all the Durable Objects charges (rows read, rows written, requests and duration) from the period between September 23 and October 6. You should see it reflected on your account within a few billing days — reply here if you don't and I'll chase it down directly. What actually happened, since the support loop clearly didn't explain it well Your PiSessionDO alarm hit a nasty edge case in how Durable Objects schedules alarms. Once a checkpoint entered its refresh window, alarm() was rescheduling itself to Date​.now() — which is effectively "fire again immediately." That's not a theoretical gotcha; it's a known sharp edge where the alarm fires at roughly 600 invocations per second with nothing meaningful happening except storage churn. The cost driver wasn't CPU time or request duration — a DO that stays awake continuously costs a few dollars a month in duration. The real cost was SQLite storage operations. At hundreds of invocations per second, each touching storage, rows read and rows written compound fast. That's where the bill came from. The fix you already shipped — a 15-minute minimum delay, a retry budget that stops rescheduling after N exhausted attempts, and a regression test — is exactly right. If those had been in place from the start, this incident would have cost dollars, not thousands. A few things worth keeping in the codebase going forward Since you're clearly building quickly, a few patterns that specifically protect against this class of issue: On alarms: Never pass Date​.now() or a past timestamp to alarm(). If the scheduled time has already passed, it fires immediately. The safe minimum is something like Date​.now() + 60_000 (1 minute), but for a refresh/retry cycle, 15 minutes is a reasonable floor. Also: always store your retry counter in DO storage and stop rescheduling once the budget is exhausted. Without a hard stop, the loop survives restarts. On spend controls: Under Notifications in your Cloudflare dashboard, you can configure billing usage alerts that trigger at specific spend thresholds. Setting these at 25%, 50%, and 75% of your expected monthly spend means something like this surfaces within hours, not two weeks. Worth setting up before you're back to building — it takes two minutes and catches a wide range of anomalies beyond just alarm loops. On DO analytics: The Workers & Pages dashboard shows per-namespace invocation counts and storage metrics. A namespace that jumps from a few thousand invocations per day to hundreds of millions looks very different — it's the fastest early signal of a loop that's also worth checking periodically when you're iterating quickly on a DO-heavy service. One general note on AI-assisted development and usage-based products: moving fast with AI tools is genuinely useful, but usage-based services like Durable Objects, D1, and R2 can have non-obvious cost profiles when code has bugs. The same speed that makes vibe coding productive can generate a billing surprise before you've had a chance to review what shipped. A brief manual review of anything that touches persistent storage or sets alarms before it hits production tends to catch the expensive class of mistakes early. I hope you'll stay on the platform. What happened here was a combination of a real edge case in the product and a real failure in how we handled your case afterward. Both matter and we're not dismissing either. If you have any follow-up questions about the credit, want to walk through your DO architecture before you re-enable the Workers, or want help auditing the rest of the codebase for similar patterns — I'm here. Let us know if you have any other questions, Daniel Cloudflare Support This reply was enhanced by Cloudflare Workers AI (Kimi K2.7 by Moonshot AI).
  16. 作者称消费上限功能将推出

    到 𝕏 阅读

    作者写道,不知道自己的事件是否起到了一点推动作用,但消费上限功能终于确定要推出了。该帖附有链接与图片,本站未读取其内容。

    浮世绘

    @shmily7 · 𝕏 原帖

    不知道是不是对这个功能起到了一点小小的推进作用,终于确定要推出消费上限功能了。 https://t.co/KMbVCKV8rF https://t.co/SpKoAM4Q2X
社区资源Workers +7

Cloudflare Cost Hub:免费与付费额度对照、成本来源和月底预测

MIT 许可的看板:用 Cloudflare OAuth 登录读取各产品分析数据,把用量按「免费额度内 / 付费包含额度内 / 已计费」着色,列出各实例的成本来源,预测月底费用,并通过邮件发送阈值与预算提醒。

Workers

ivebenfreed:October 的 Dynamic Workers 账单在 unique-worker 收费后接近 $80。

X 用户 @ivebenfreed(Ben Freed)称,上月 Dynamic Workers 账单接近 $80,因为每次 Code Mode 调用都会启动一个新实例,包括通过 Cloudflare 官方的 @cloudflare/codemode 包,超过每月前 1,000 个后每个 unique worker 每天 $0.002;October 最糟糕的一天有超过 12,000 个。作者后来停止使用 Dynamic Workers(数量从 October 每天约 2,600 降至 November 13 以来的零)。“按 October 的速度将达到约每月 $155”是推算,不用作事件金额。该帖中的回复并非 Cloudflare 官方回应。

作者经验Workers +7

岚叔:用 AI 检查 Cloudflare 计费风险的提示词

岚叔(@LufzzLiz)分享六步检查提示词,覆盖账号归属、用量、异常消耗与预算告警;回复补充 alarm 日志、邮件送达检查与独立通知。