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, {