Source-linked reports: Amounts and outcomes come from the original reports and linked replies.
hiromsaeden: an unindexed D1 query loop billed $2,129.00; a $953.74 courtesy credit left $645.38 due.
Cloudflare Community user hiromsaeden, in a post-mortem of a personal hobby project on Workers and D1, says an unindexed GROUP BY aggregate query scanned about 877,000 rows to return 30 rows, and an unintended loop triggered about 315,000 runs across two billing cycles. In the Oct 15 – Nov 15 cycle alone, 1,447,580,203,670 rows (1.44 trillion rows) were read, on top of the previous cycle’s usage. The author says the October invoice IN-83890481 was $529.88 USD, paid in full out of pocket; the November invoice IN-89082487 was $1,599.12 USD ($1,447.58 D1 Rows Read + $6.16 Workers CPU + $145.38 tax); and the total billed was $2,129.00 USD against an expected budget of about $20/month. After noticing the issue on Nov 2–3, the author deleted the Worker and the D1 database; Support confirmed all reads had stopped. In case #02408621, Support offered a $275.00 courtesy credit for October and advised holding it until the November invoice was issued on Nov 15. In case #02434399, Support applied a one-time courtesy credit of $953.74 (which included the held $275.00), leaving a final balance of $645.38 USD, and said the review was complete and no further adjustments can be made. The author, having already paid $529.88, says the remaining $645.38 cannot be afforded and the account will be downgraded on Nov 22. The author also says a budget alert fired once at the $37 mark but did not stop the charges, and that D1 currently has no hard spending cap. There is no Cloudflare staff reply on the public thread; the Support actions are reported by the author.
What happened
- Reported cause
- Unbounded loop
- Incident date
- Date not recorded
- First reported
- 2026-11-18
- Billing outcome
- Credit issuedAuthor-reported
- Case progress
- OpenAuthor-reported
- Public Cloudflare reply
- Not linked
Latest reported outcome
The author says Support applied a one-time courtesy credit of $953.74 (including a held $275.00), leaving $645.38 due, said no further adjustments can be made, and that the account will be downgraded on Nov 22.
View this update in the timelineOriginal sources
Each entry links to the report or reply it describes.
Case timeline
Loop stopped; $275.00 courtesy credit offered for October
Open original sourceThe author says the issue was noticed on Nov 2–3, the Worker and D1 database were deleted, Support confirmed reads had stopped, and in case #02408621 Support offered a $275.00 courtesy credit for the October invoice IN-83890481 ($529.88 USD, already paid), to be held until the November invoice.
November invoice reviewed; $953.74 credit, $645.38 left
Open original sourceThe author says invoice IN-89082487 ($1,599.12 USD) was issued, and in case #02434399 Support applied a one-time courtesy credit of $953.74 (including the held $275.00), leaving $645.38 USD due, with no further adjustments; the total billed was $2,129.00 USD. The author says the remaining balance cannot be afforded and the account will be downgraded on Nov 22.
More to read
风易: 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.
mateuspainhob17: charged $4.88 for a feature no longer in use, for a second month, and opened a ticket.
Cloudflare Community user mateuspainhob17 (toasty.pet) says a failed invoice email arrived for a $4.88 charge. The author says the same charge also occurred the previous month, and that the feature was then deactivated, but the $4.88 charge appeared again even though the feature is not being used. The post does not name the feature. Community MVP sjr asked which feature it was and pointed the author to the billing-ticket guide. The author later said a ticket had been created and asked what to do next; sjr said to wait for a reply on the ticket. There is no Cloudflare staff reply on the public thread, and no ticket outcome is reported.
Michael Liyang: record every AI call in D1 and downgrade before the budget runs out
@Michael_liyang argues that on a free tier the danger is not one expensive call but not knowing which call is expensive: write each call's usage to D1 by user and model, have a daily Cron check budgets and downgrade first, and look at which user is burning quota rather than only the total.