billflare.

Alarm scheduling · Content tag

Browse content discussing alarm scheduling.

38 matching items

Cases · 8

Durable Objects

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

Reported cause: Unbounded loopx.com
First reported: Latest update:
Durable Objects

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

Reported cause: Unbounded loopx.com
First reported: Latest update:
Durable Objects

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

Reported cause: Unbounded loopcommunity.cloudflare.com
First reported: Latest update:
Durable Objects

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

Reported cause: Unbounded loopx.com
First reported: Latest update:
Durable Objects

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

Reported cause: Unbounded loopx.com
First reported: Latest update:
Durable Objects

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

Reported cause: Unbounded loopx.com
First reported: Latest update:
Durable Objects

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

Reported cause: Read volumex.com
First reported: Latest update:

Guides · 29

GuideWorkers

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.

GuideWorkers

风易: 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.

GuideWorkersKVD1

风易: 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.

GuideWorkersDurable ObjectsQueuesContainersCron Triggers

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.

GuideWorkersD1KVR2QueuesDurable ObjectsWorkers AIImages

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.

GuideDurable ObjectsWorkersAI Gateway

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.

GuideDurable ObjectsR2WorkersWorkers Logs

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.

GuideDurable ObjectsWorkers

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.

GuideDurable ObjectsWorkers

cloudflare-cost-guard

Louis Cai’s open-source rules and TypeScript base class for keeping Durable Object alarms and Worker schedulers from runaway loops.

GuideDurable Objects

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).

GuideDurable ObjectsAgents SDK

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.

Skills · 1

Skill

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