billflare.

Durable Objects alarms

Cloudflare documents how Durable Object alarms are scheduled, retried, and deleted.

Products
Durable Objects
Source
Official docsCloudflare Docs

Key points

  • Each Durable Object can have one alarm at a time; calling setAlarm while one is scheduled overrides it. Alarms let work run without incoming requests keeping the object alive, and the alarm() handler can set future alarms.
  • alarm() has at-least-once execution. When it throws an uncaught exception, it is retried with exponential backoff starting at 2 seconds, up to 6 retries; this applies only to the most recent setAlarm() call.
  • If the constructor calls setAlarm, the docs say to check first whether an alarm is already set, because the constructor runs before alarm() when an inactive object wakes. Calling deleteAlarm() inside alarm() may prevent retries only on a best-effort basis.

Original sources

  1. Undated

    Durable Objects alarms

    Open original source

    Cloudflare documents how Durable Object alarms are scheduled, retried, and deleted.

  2. Undated

    Durable Objects pricing: alarm invocations count toward billed requests. With SQLite-backed storage, each setAlarm() is billed as one row written; with key-value storage, as one write request unit.

    Open original source
Author experienceWorkers +5

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.

Other

itsabhisheksood: a Cloudflare 3D Secure prompt asked to confirm a $275.68 monthly payment.

X user @itsabhisheksood (Abhishek Sood) posted a screenshot of a Cloudflare 3D Secure prompt asking to confirm a $275.68 payment, with the caption “A vibe coding mishap or something big in the making?” The prompt describes a monthly payment. X user @thisnaeem replied calling it a $275.68 monthly Cloudflare bill and asking whether an agent provisioned something or usage compounded. The product and cause are not stated. The public outcome is unknown.

Community resourceWorkers +5

Polaris: self-hosted Free-plan remaining-quota and cost dashboard on Workers

etak64n/polaris is an MIT-licensed dashboard on Cloudflare Workers that shows how much of each Free plan limit is left and the cost/metrics of Workers, D1, R2, KV, Durable Objects, Queues, Workflows, Hyperdrive, Browser Run and Workers AI. It deploys behind Cloudflare Access and reads Analytics with an API token kept as a secret.