Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

functions enqueue and delete throwing Timeout error #1176

Closed
affcue25 opened this issue Sep 2, 2024 · 2 comments
Closed

functions enqueue and delete throwing Timeout error #1176

affcue25 opened this issue Sep 2, 2024 · 2 comments

Comments

@affcue25
Copy link

affcue25 commented Sep 2, 2024

Bug Report

Current Behavior
We are trying to enqueue or delete the job but it throws timeout error after 10 sec of wait. It was working fine before but now its causing this issue and we have not change anything. Its causing this issue on either of functions.

Input Code
Heres the code snippet:

await remindersQueue.delete(id)

await remindersQueue.enqueue(
              { id, input },
              {
                id: id,
                override: true,
                runAt: new Date(timeStr),
                repeat: {
                  every: '1d',
                },
              }
            )

Expected behavior/code
It should queue the job as it was doing before but now its not working as expected. I am using it with redwood

import { Queue } from 'quirrel/redwood'

export const handler = Queue(
  '.netlify/functions/sendReminders',
  async (params: any, params2: any) => {
  //my logic to send email to users
  })

Environment

  • Quirrel version: "quirrel": "^1.14.1",
  • Node/npm version: 18

Please guide me here if you have change anything.

@affcue25
Copy link
Author

affcue25 commented Sep 2, 2024

Its related to my Fly.io configuration. I migrate it using this doc https://dev.to/remixtape/self-hosting-quirrel-5af7 but I cant understand the URL in the last command to get QUIRREL_TOKEN
curl --user ignored:paste_quirrel_passphrase_here -X PUT https://quirrel.fly.dev/tokens/exampleapp

Can you please help me here, what should be the URL https://quirrel.fly.dev/tokens/exampleapp?

@affcue25
Copy link
Author

affcue25 commented Sep 3, 2024

Resolved it. I was passing wrong port 9181 instead of 6379 in
flyctl secrets set "REDIS_URL=redis://:[email protected]:9181?family=6"
And
I had to create fresh quirrel redis-quirrel instances.

Make sure to pass 6379 as quirrel-redis PORT.
My new Quirrel is working now for enqueue() and delete() functions.

@affcue25 affcue25 closed this as completed Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant