Ray's Knowledge Base
Unlock

A Worker cron that calls KV list on a schedule exhausts the free-tier list quota

PitfallVerified 2 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

Cloudflare Workers KV free tier allows 1,000 list calls, 1,000 writes and 100,000 reads per day. A Worker cron that runs KV list once a minute makes 1,440 list calls a day, so it passed 50% of the daily cap in about 8 hours. Cloudflare then mailed "KV operations are nearing the daily cap". Past the cap, KV API calls return 429 and operations inside a Worker fail until 00:00 UTC.

Cause#

list has the same daily quota as writes (1,000), so a once-a-minute cron alone exceeds it.

Fix#

Never call list on a schedule. Keep the set of items in one record and read it once per tick, since reads have 100x the budget, and write only when the set changes.

Evidence#

rsrobo's poller; the single-record redesign removed the list calls and the cap warnings stopped.

Also found by searching

  • KV operations are nearing the daily cap
  • Cloudflare Workers KV free tier list calls 1000 per day
  • Worker cron KV list 429 until 00:00 UTC
  • never call list on a schedule