Alarm scheduling · Content tag
Browse content discussing alarm scheduling.
38 matching items
Cases · 8
igorrizzom: a forgotten Durable Object alarm billed US$ 2,038; Support refunded US$ 1,533.29, leaving US$ 505.
X user @igorrizzom (Igor Rizzo), who also posted on Cloudflare Community as igorarm (urnaaovivo.com), says a personal, non-commercial prototype that collected public election data in Brazil was left running after the October 25 runoff. A Durable Object kept rescheduling itself via alarm every ~5 seconds and writing to SQLite, and the invoice reached US$ 2,038, almost all from DO rows written, with about 10k pageviews. The author says budget alerts were set up but went to an old inbox that was never checked, and that alerts do not stop usage. Spend limits for Workers and Durable Objects were only announced on November 13, after almost all of the usage; the author then set a US$ 1 spend limit, turned the collector off, and removed Cron Triggers. The author says Support refunded US$ 1,533.29 as a one-time courtesy. The remaining US$ 505, which the author later described as US$ 500 of usage plus the US$ 5 Workers Paid fee, was closed as final; the author asked for a supervisor review in case #02442826 (follow-up to #02435308) and also asked @SidChatterjee whether any goodwill path remained for pre-launch cases. There is no Cloudflare staff reply on the public X thread or the Community thread. Public Support actions are reported by the author.
Reported amount · USD
$2,038
neoblender13: an AI agent’s recursive alarm system turned a ~$10 monthly Cloudflare bill into $1,500; $400 credited.
neoblender13 says the Cloudflare bill is normally around $10 a month, but this month it was hit with a $1,500 bill because an AI agent created a recursive alarm system that ballooned Durable Objects storage writes, and that Cloudflare support was not very helpful. In later replies the author says they did not realize spending limits were alert only, received a $400 credit and still had to pay $1,100, that the single alert email got buried in the inbox, and that a Discord bot now reports costs every 12 hours.
Reported amount · USD
$1,500
per month
Lion Brain: a Durable Object alarm loop from an AI-coding bug wrote about 250 million rows, roughly $210.
Replying in another user's Community thread, bennygoldstein says a bug written by an AI coding tool made a Durable Object alarm in their Lion Brain app re-index the same data every few seconds on October 10 and 11, 2026, writing about 250 million rows and costing roughly $210 in overage on Workers Paid. He says he only found out from the budget alert email, which never pauses anything, and that he opened a billing case asking for a one-time courtesy credit and a real hard spending cap.
Reported amount · USD
$210
babynarc: a Durable Objects alarm loop and a surprise bill that grew from $300 to $500.
@babynarc says an alarm loop in an old Durable Object he thought was inactive left him badly burned: he watched a surprise $300 bill grow to $500 even after killing it. Replying to Cloudflare's Dane Knecht and Kenton Varda, he suggests prepending budget-alert details to every `cf` result by default.
Reported amount · USD
$500
shmily7: a Durable Object alarm loop and a reported US$10,811.41 bill.
@shmily7 reports a Durable Object alarm loop in an unused test project, then says he paid the full US$10,811.41 bill to avoid service suspension. Cloudflare’s Ashley Peacock publicly says he is looking into it internally and will follow up. Cloudflare’s Dane Knecht later replies that he escalated it too. On October 9 the author declares the case closed: he reports that, with Ashley Peacock’s help, Cloudflare decided to refund the charges incurred during the bug in full, with the money still to arrive, and posts the support ticket reply he received.
Reported amount · USD
$10,811.41
A development app, a reported $655.83 Durable Object alarm bill.
@q_huy_ngo reports a $655.83 bill and roughly 700 million interactions from a faulty alarm in an app with no users. CloudflareHelp says it will review the support case and reply in the ticket.
Reported amount · USD
$655.83
Will Moss: an alarm loop, 20 trillion Durable Object reads and a reported $34,895 invoice.
@itswillmoss reports 20,213,871,155,804 Durable Object reads, a dashboard mismatch and lost project access. He attributes the loop to health checks waking onStart and repeatedly setting an alarm. The X thread estimates the cost above $30,000; a same-day Hacker News post by thewillmoss describing the same alarm loop reports a $34,895 invoice and a support case awaiting a billing response.
Reported amount · USD
$34,895
Steven Menke: an Agents SDK bug and a reported $1,700 Durable Objects invoice.
Steven Menke (@Galorious_) reports that runaway Durable Objects caused by an Agents SDK bug produced a $1,700 invoice in three days, citing one trillion SQLite reads (a later post says writes). He says his support ticket, even after a maintainer escalated it, received no reply for months.
Reported amount · USD
$1,700
Guides · 29
Community: Workers Free Cron can show 98–200 ms CPU against a 10 ms limit without a CPU-limit error; an MVP says rollover can allow it until invocations get frequent
On 2026-11-18, Cloudflare Community user alexandru.bonciu asked how to read Workers Free Cron CPU. A Worker on a 15-minute Cron showed Observability CPU Time of 98 ms, 138 ms, and 200 ms, with wall time about 22.6–38.6 seconds, and the dashboard sometimes labelled 200 ms as 100% of maximum. Official docs list a 10 ms CPU limit for Cron Triggers on Free and mention occasional rollover. Over seven days, Metrics → Errors showed no Exceeded CPU Time Limits errors. MVP i40west (title: MVP '23–'26) replied the same day that the 10 ms limit does not automatically kill the Worker every time, that it can be exceeded to a certain degree especially if the Worker is not invoked often, and that if there is no error the run completed successfully. The same reply warns that if the Worker exceeds the limit every time in testing, it can be killed at any time, and with frequent invocation it will definitely start erroring; 200 ms should not be taken as always acceptable.
风易: Cold starts on the free tier cannot be eliminated; do not let a Cron health check become a timer that burns quota
On 2026-11-14, X user @Michael_liyang (风易) wrote: cold starts on the free tier cannot be eliminated, and can only be hidden. The first request has to establish the connection on the spot and load the model on the spot, and users fully perceive that slow moment. The approach is for Cron to send a lightweight health check once every 5 minutes, taking only the health check and not inference, to keep the warm instance; alert only after the health check fails two times in a row, and do not let the keepalive itself become a timer that burns quota. The chain is Cron → health check → record status → alert on failure → switch to degradation.
风易: On the free tier, what Cron fears most is task overlap; use a KV lock to skip rather than running again in parallel
On 2026-11-13, X user @Michael_liyang (风易) wrote an experience note about scheduled tasks on the Workers free tier: what is feared most is not failure, but overlap. Cron triggers once every 5 minutes; if the previous run has not finished, the next one arrives, and the same batch of data is processed twice. The approach the author gives is: take a KV lock before executing, and skip immediately if it cannot be obtained; the lock must carry an expiration time, so that a hung task does not leave the lock stuck; after the run finishes, write to D1 and then release the lock. The chain is trigger → take the lock → skip if not obtained → execute if obtained → write the result → release the lock. The author emphasizes: the lock prevents duplicates; it does not prevent slowness.
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.
Lunora: codegen lints that name the billing meter a loop moves
Daniel (@_prisis_) says a Cloudflare bill spike is usually a loop, not traffic; his framework Lunora now flags count_without_index, queue_dispatch_cycle, cron_every_minute and container_long_sleep_after at codegen, before deploy, naming the meter each one moves.
WquGuru: a read-only Cloudflare billing audit prompt
WquGuru (@wquguru) shares a read-only audit prompt that checks account usage, D1 query plans, loops and retries, Durable Object wake-ups, high-priced operations and Worker config, then ranks risks by worst-month cost.
Sentry v11 kept Durable Objects awake for 500 ms after every event
Philip Atkinson (@UnrationalPhil) found that upgrading @sentry/cloudflare to v11 raised his Durable Object alarms from about 25 ms to about 505 ms of wall time, because span streaming sets a 500 ms flush timer; the workaround is traceLifecycle: 'static'.
Refunds are not a safety net: install your own brakes on cloud bills
SagaSu (@sujingshen) writes a loss-control guide for indie developers: usage-billed code can burn money with zero users, refunds should be planned as zero, and budget alerts are not brakes; it lists five things to set up beforehand and what to do once a bill has already spiked.
Writing a Cloudflare cost-guard skill for coding agents
An AIIDE List guide on turning Cloudflare billing safety into an agent skill with BUILD, AUDIT, PREDEPLOY and INCIDENT modes, plus risk rules for D1 queries, Durable Object alarms, polling, Queues and R2.
Designing a poker game on Durable Objects so idle time costs nothing
Philip Atkinson describes the architecture of his multiplayer poker game on the Cloudflare Developer Platform and the cost rules he follows: archive finished games out of Durable Object storage, hibernate WebSockets, wake with alarms and treat logging as a cost decision.
Cloudflare free plan from scratch: which services bill on overage, and what to set up first
李天才 (@Lniosytest) re-walks a popular Cloudflare beginner tutorial (domains, email routing, R2, Workers AI) against the October 2026 docs, prompted by the $10,811 Durable Object alarm bill, and adds a table of what happens on overage plus a pre-flight list for avoiding a runaway bill.
Layered defenses after a Durable Object alarm loop
星星之火可以燎原 (@fireandstart) reads a public Durable Object alarm-loop recap and argues for layered defenses rather than relying on being more careful next time.
Put the spending ceiling into AI-generated code
Prasenjit Sarkar (@stretchcloud) uses the Durable Objects alarm loop to argue that alarms bill without traffic, that a single console cap cannot cover multi-vendor agent work, and that generated code needs execution quotas, idempotency checks and a kill switch.
Idle projects can still bill: check background tasks and storage
@An_yhl reads @shmily7’s follow-up as a reason to audit abandoned AI projects: check scheduled background work and storage reads and writes, stop what is unused instead of just closing the page, and turn on alerts knowing they will not stop anything.
Removing unneeded Durable Objects from MCP servers on Workers
Justin (@interjc) describes moving read-only MCP servers from McpAgent, which starts a Durable Object per session, to stateless createMcpHandler, and shares a prompt for auditing Workers bindings and runaway usage patterns.
Check getAlarm() first and keep preview off real Durable Objects
@graycoin retells the Durable Object alarm loop shared by @shmily7 and draws three habits: check getAlarm() before setAlarm(), do not bind preview environments to real Durable Objects, and reread AI-generated storage and scheduling code.
Lanshu: an AI-assisted Cloudflare billing risk checklist
Lanshu (@LufzzLiz) shares a six-step prompt for checking account ownership, usage, runaway consumption and budget alerts. Replies add alarm logging, email delivery checks and separate notifications.
After a $10,000 loop bill: budget alerts and a cost-audit prompt for vibe-coded projects
铁柱AGI (@cgnot996) writes an X article that walks through creating a Cloudflare budget alert, explains why it is only a notice, lists cost-amplifying code patterns, and gives a read-only audit prompt and steps for when a bill has already spiked.
Four layers of cost protection for small Cloudflare projects
David Z (@davezfr) writes an X article for vibe coders on budget alerts, stop conditions for paid paths, automatic pausing, and letting a personal agent verify and pause.
Durable Object alarm rules for agents.md
Viking (@vikingmute) shares the AI-generated Durable Object alarm rules he keeps in agents.md and suggests having another model review changes.
Don’t call your Durable Object alarm handler directly
Jamie Barton (@notrab) says a `<` written instead of `<=` in a self-rescheduling alarm cost him 8 billion database operations across 191,000 requests in 30 days, and that the lesson is to call setAlarm() rather than alarm().
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.
cloudflare-cost-guard
Louis Cai’s open-source rules and TypeScript base class for keeping Durable Object alarms and Worker schedulers from runaway loops.
Durable Objects alarms
Cloudflare documents how Durable Object alarms are scheduled, retried, and deleted.
FlareCost: a Durable Object alarm() is a request plus duration; setAlarm() is storage, not a second request
FlareCost’s durable-object-alarms page (reviewed 2026-11-02) says an alarm() invocation counts as a Durable Object request, and duration is billed for the wall-clock time that handler runs. setAlarm() is not a second request: on the SQLite backend it is one row written; on the key-value backend it is one write request unit. Pricing examples treat the allocation as 128 MB / 1 GB, so one second of duration is 0.128 GB-s. An idle object that can hibernate is not billed for the gap between alarms. The handler is at-least-once and a thrown handler is retried up to 6 times, each run another request and more duration. One object holds one alarm; the Workers limits page caps an alarm handler at 15 minutes of wall time (900 × 0.128 = 115.2 GB-s).
Where to see D1 rows read and Durable Objects requests before the invoice
Howard tabulates eight public 2026 Cloudflare bill spikes (seven D1 rows read, one Durable Object alarm loop) and turns them into concrete places to check and a ten-times-baseline alert rule.
How to keep a Durable Objects dead loop from bankrupting you
karamage explains Durable Objects billing as an hourly hotel, recounts how his own alarm loop pushed the projected usage charge of a personal service from a few yen to nearly ¥8,000 (his figure), and lists four coding rules and two monitoring habits to catch a runaway loop early.
Cloudflare Cost Guard: a read-only agent skill for runaway-billing audits
Layer Cache’s open-source agent skill, announced by Domenico (@purposelyblnk), audits a Cloudflare codebase from source alone for paths that can run up uncontrolled billable usage, and reports findings without changing code or calling Cloudflare.
cloudflare-runaway-bill-audit: an agent skill that checks a project for runaway-bill risks
An MIT-licensed agent skill by pc418 that combines a deterministic read-only scan of wrangler configs (optionally read-only account checks) with an agent review of the source, and writes an HTML report plus a Markdown handoff listing alarms, suggestions and unknowns.
Skills · 1
Cloudflare billing risk audit skill
Ask your coding agent to check a Cloudflare project for loops, retries and repeated work that could drive up costs, with code locations and suggested improvements.
daftai-cloudflare-billing-audit