mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-20 17:13:49 +00:00
feat(queue): async delivery via Cloudflare Queues with retry backoff and DLQ
This commit is contained in:
16 files changed
+702
-22
No files matched your search
@@ -0,0 +1,8 @@
|
||||
import type { Env } from "../lib/types";
|
||||
import { handleQueueBatch } from "../lib/queue/consumer";
|
||||
|
||||
export default defineNitroPlugin((nitroApp) => {
|
||||
nitroApp.hooks.hook("cloudflare:queue", async ({ batch, env }) => {
|
||||
await handleQueueBatch(batch, env as Env);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user