deploy_feedback icon indicating copy to clipboard operation
deploy_feedback copied to clipboard

[KV Feedback]: Dequeue is not working

Open democrazyfi opened this issue 1 year ago • 1 comments

🔍

  • [X] Did you search for existing issues?

Type of feedback

Bug report

Description

We're facing an issue where events are not de-queued in our Deno Deploy environment for the past 24 hours

Screenshot 2024-08-19 at 19 28 15

We have not changed anything specific to the queue or dequeue logic

Steps to reproduce (if applicable)

  
  const db = await Deno.openKv();
  //...
  const result = await db
    .atomic()
    .check({ key: keys.WEBHOOK_LOCK(txHash, webhookId), versionstamp: null }) //ensure not queued before
    .set(keys.WEBHOOK_LOCK(txHash, webhookId), true, {
      expireIn: Number(Deno.env.get("WEBHOOK_LOCK_EXPIRE_IN_MILLIS")!),
    })
    .enqueue({ ...event, timestampMillis: Date.now() })
    .commit();
  console.log(`Webhook for tx ${txHash} queued`, result);
  if (!result.ok) {
    console.log(`Webhook for tx ${txHash} already queued`);
  }
  

Expected behavior (if applicable)

For the same DB instance, we have the following

db.listenQueue(callback);

but the callback never gets triggered, and in the analytics dashboard we don't see any dequeue count

Possible solution (if applicable)

No response

Additional context

We did previously see gep-us-east4 Error: txnproxy call timed out

democrazyfi avatar Aug 19 '24 18:08 democrazyfi

Hi @democrazyfi, in case the issue is still occurring, could you please email us at [email protected] with your deno deploy user/organization ID so we can take a look?

igorbdl avatar Aug 29 '24 08:08 igorbdl