From a0c05a5f32e2e4d400b8a9ced5ea59ee727ac188 Mon Sep 17 00:00:00 2001 From: Chris Knight Date: Wed, 13 Sep 2023 19:54:44 +0100 Subject: [PATCH] temp: turn off enqueueing to clear rogue queued item --- main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.ts b/main.ts index d957568..35ea836 100644 --- a/main.ts +++ b/main.ts @@ -24,6 +24,10 @@ console.log("Starting main..."); const kv = await Deno.openKv(); async function enqueue(msg: number, delay: number): Promise { + if (true) { + console.log("Temporarily disabling enqueueing of messages"); + return; + } const result = await kv.atomic() .check({ key: LOCK_KEY, versionstamp: null }) //check no enqueue lock is present .enqueue(msg, {