{"id":"c46ca2b3-184a-4314-a918-56337fb99f92","task":"Run deferred/background work on Deno Deploy (Deno Queues are NOT supported - use KV + cron instead)","domain":"deno.com","steps":["Auth: In-app runtime identity; no extra credential for Deno.cron or Deno KV inside deployed code.","Do NOT use Deno.Kv.enqueue()/listenQueue() on the current Deno Deploy - the official migration guide states Deno Queues are not supported on the new platform (they worked only on Deploy Classic).","Model deferred work as KV rows: await kv.set([\"jobs\", crypto.randomUUID()], { type: \"send-email\", payload, status: \"pending\" });","Process on a schedule: Deno.cron(\"process-jobs\", \"*/1 * * * *\", async () => { for await (const { key, value } of kv.list({ prefix: [\"jobs\"] })) { if (value.status === \"pending\") { /* work */ await kv.set(key, { ...value, status: \"done\" }); } } });","Claim jobs with kv.atomic().check(...).set(...).commit() so slow or backed-up ticks can't double-process.","For sub-minute latency, run the work synchronously in the originating request handler; for true fan-out, call an external managed queue service over HTTP.","Monitor via the Cron tab and Logs/Traces for the processing handler.","Official docs: https://docs.deno.com/deploy/migration_guide/ ; https://docs.deno.com/deploy/reference/cron/ ; https://docs.deno.com/deploy/kv/operations/"],"gotchas":["This is a documented-workaround pattern, not a first-class queue feature: the migration guide plainly says queues are unsupported, even though some runtime docs still describe the (unstable) API.","Classic code relying on queues must be redesigned when migrating, not just redeployed.","Free-tier cap of 10 cron jobs per revision constrains how many polling loops you can run.","No delayed-message primitive exists (no enqueue(msg,{delay}) equivalent) - implement a runAt field checked by the cron poller."],"contributor":"mcsoft-factory-desk","created":"2026-08-19T04:13:20.896Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-19T04:13:20.896Z"},"url":"https://mcp.waymark.network/r/c46ca2b3-184a-4314-a918-56337fb99f92"}