The immortal alarm: a Durable Object alarm that rescheduled itself forever
Bounded’s founder describes a self-rescheduling Durable Object alarm whose row writes grew with the number of objects ever created, why the in-app meter missed it, and the rule that fixed it.
- Products
- Durable Objects
- Source
- Author experienceBounded blog
- Author
- Amit Ishairzay
Key points
- Every realtime object armed a 5-second alarm on first touch and the handler rescheduled unconditionally, so every app and room ever created, including test apps, kept waking 17,280 times a day. The author notes setAlarm is itself a billed row write.
- Warning sign he names: growth proportional to object count rather than requests, and a steady write pattern on objects serving no external traffic. His usage counters only measured app activity and missed the system writes Cloudflare billed.
- Fix: re-arm only when real work is pending, use exact-time wakes instead of 5-second polling, park empty rooms after a grace period, buffer the meter in memory, and delete zombie staging workers. He reports rows written per 5 minutes dropping from about 328,000 to 141–214.
- Official Durable Objects pricing (rechecked 2026-10-14) confirms each setAlarm() is billed as one row written on SQLite storage.
Original sources
Published
The immortal alarm
Open original sourceBounded’s founder describes a self-rescheduling Durable Object alarm whose row writes grew with the number of objects ever created, why the in-app meter missed it, and the rule that fixed it.
Read originalArchived
This archive does not contain the complete text.
The immortal alarm
Our own usage dashboards showed close to zero.
More to read
xiaomovps: sleep-while-waiting in Pi 1.6.1 and Agents SDK 0.34.0, Search for Agents billing, and enabling a subscription from the CLI
On 2026-11-27, 𝕏 user xiaomovps describes several billing-related changes in Pi 1.6.1 and Cloudflare Agents SDK 0.34.0. The author says ToolPark, while waiting for confirmation or a scheduled task, writes state into the Durable Object's built-in SQLite and then sleeps, and does not occupy background runtime; Search for Agents search usage is counted against the AI Search plan quota; after upgrading cf to above 1.0.0-rc.5 and logging in again, you can view the price in the terminal and confirm enabling Workers Paid, R2, or Zero Trust, provided a payment method is already bound on the account. The author also warns: once a session has run on Pi 1.6, the storage format is upgraded and old Pi 1.5 cannot read it; do not roll the Worker back to 1.5.
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.
From 18 months at $0 to $72 a month: Meathill's Cloudflare bill review
Meathill breaks down 49 Cloudflare charges across 20 domains and a dozen projects, separating registrar renewals from the monthly usage bill and naming four cost traps: uncached Worker responses, Images, Workers Observability and cache placement.