question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is the proper setup?

See original GitHub issue

Reading the documentation, it is not clear what is the recommended way to setup queues for real world scenarios, i.e. Do I use one queue for the entire application and then route the tasks based on their names?

const queue = new Queue('main-queue');

await queue.add('email:send-parse');
await queue.add('email:send-email');

or am I supposed to use one task per domain, e.g.

const queue = new Queue('email-queue');

await queue.add('send-parse');
await queue.add('send-email');

or one queue/worker per task?

await (new Queue('email-queue')).add('email-queue:send-parse');
await (new Queue('email-queue')).add('email-queue:send-email');

If it is the latter (as some comments seem to imply), then what is the purpose of the task name?

Some brief explanation of the subject would be tremendously helpful.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
manastcommented, Aug 19, 2020

currently it is not possible to move a job inside the wait list, however technically it is possible, so if this is an important usecase I could add it as a new feature.

1reaction
manastcommented, Aug 13, 2020

not really, if you have a high priority job that occurs very often it could starve the less prioritized jobs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Back to Basics: Golf Setup 101 - The Left Rough
Setup is critical to your swing but can be confusing. In our Golf Setup Guide we cover it all, from the proper golf...
Read more >
Step-by-Step Guide to a Great Golf Setup - TripSavvy
Learn how to get a great golf setup position with this step-by-step guide to the stance that includes alignment, ball position, posture, ...
Read more >
How to get a balanced, centered setup position to start your ...
The Neutral Setup : This is the ideal mid-iron setup. The ball is positioned off my left ear, my feet are roughly shoulder-width...
Read more >
Golf Setup Tips - How to Set Up at Address
There are a number of key elements in the golf setup: proper alignment, the correct stance and ball position, good posture and a...
Read more >
A quick setup checklist for every type of shot - Golf Digest
What it does take is knowing the correct positions and having the discipline to get them right. Let's start with the driver.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found