A Durable Object alarm loop caught by custom analytics and an agent that shut the deployment down
Aakash Reddy (@aak4shreddy) says a regression left a Durable Object in an alarm loop from a repeatedly polled tool call; his custom Cloudflare analytics sent an overspend webhook and his agent removed the deployment. He says he had misread how Durable Objects duration is billed.
- Products
- Durable ObjectsWorkers
- Source
- Author experience𝕏 post
- Author
- Aakash Reddy (@aak4shreddy)
Key points
- He says he was testing on Workers Paid with roughly a $5 overspend limit of his own, and that he had overlooked an error and left the regression deployed.
- He says a Durable Object went into an alarm loop because of a repeatedly polled tool call, while he was trying custom steering and stop-and-wake logic.
- His custom Cloudflare analytics MCP, built over all his Cloudflare resources, delivered an overspend webhook, and his proactive agent immediately took the services down and removed the deployment.
- He says he should have checked Durable Objects pricing: in his words duration is not billed per GB like sandboxes but bundled per million GB(-seconds).
- In an earlier post he said a hard stop at the budget runs against what Cloudflare was meant to be, but a toggle matters for most people; he had a $10 budget alert and custom triggers, so he was notified. The post he quoted was not readable.
Original sources
Published
Original post
Read on 𝕏Aakash Reddy (@aak4shreddy) says a regression left a Durable Object in an alarm loop from a repeatedly polled tool call; his custom Cloudflare analytics sent an overspend webhook and his agent removed the deployment. He says he had misread how Durable Objects duration is billed.
Aakash Reddy
@aak4shreddy · Original 𝕏 post
Appreciate it Ian from Cloudflare. I should have looked at pricing structure for DOs it was not bases on GBs like sandboxes are but bundled per 1 million GBs. I should have known this and was testing stuff with like a 5$ overspend limit on top of Workers Paid. This got bundled and my dot got an overspent notification via custom cf analytics mcp built for my all my cf resources, and immediately turned down the services when a durable object was in an alarm loop, because of repeatedly polled tool call (this was before pi-durable when I was trying custom steering, and stop and wake and this happened). TLDR: DO bills per million bundled GBs, which i should have been aware of. Overlooked an error and left the regression deployment as is. Kind of saved by pro-active agents(dot) in this case, along with custom analytics that delivered the webhook and dot removed the deployment.
Earlier post: a hard stop at the budget would be an anti-pattern, but a toggle matters; with custom analytics, triggers and a $10 budget alert he was notified.
Read on 𝕏Aakash Reddy
@aak4shreddy · Original 𝕏 post
Idk man hard stoppage when you reach a budget is an anti pattern to what Cloudflare was supposed to be, but I think a toggle on it so most people have their sane is much important. I was a victim of this but I had custom analytics and triggers, and a budget alert of 10$, so I got notified.
More to read
Self-hosted Ember chat on Workers Free: daily limits stop saving messages until 00:00 UTC
Two replies about Kevin Rose's Ember chat app note that on the Cloudflare free tier the allowances are daily, and once they run out Ember stops saving new messages until midnight UTC; one cites the README's estimate of about 100 people sending 30 messages a day before the $5 Workers Paid plan is needed.
stevesprompt: an agent clicked Upgrade in the Cloudflare dashboard and charged $1.5k; the money was refunded.
X user @stevesprompt (Steve Huang) says an agent clicked Upgrade in his Cloudflare dashboard and he was charged $1.5k, and that the money was luckily refunded. The author then lists precautions before an agent can spend money or send anything. The post does not name the product that was upgraded. There is no official public Cloudflare response in the thread.
Six free allowances and four kinds of cost: estimating a Cloudflare bill line by line
Su (@Sukiea1008) lists six common Cloudflare free allowances and four kinds of cost — separately bought items, hard stops at free limits, metered usage on enabled services, and other services such as models and email — and walks through a PDF summariser to show why each line must be estimated in its own unit.