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

[Question] await queue.add(name, data) what is the meaning of name #710

Closed
dtboy1995 opened this issue Aug 26, 2021 · 2 comments
Closed

Comments

@dtboy1995
Copy link

dtboy1995 commented Aug 26, 2021

What is the meaning of name

await queue.add(name, { colour: 'red' });

Is there any specific role or benefit?
Bull v3 not required name param

@dtboy1995 dtboy1995 changed the title Question await queue.add(name, { colour: 'red' }); What is the meaning of name Question await queue.add(name, data) what is the meaning of name Aug 26, 2021
@dtboy1995 dtboy1995 changed the title Question await queue.add(name, data) what is the meaning of name 【Question】 await queue.add(name, data) what is the meaning of name Aug 26, 2021
@dtboy1995 dtboy1995 changed the title 【Question】 await queue.add(name, data) what is the meaning of name [Question] await queue.add(name, data) what is the meaning of name Aug 26, 2021
@manast
Copy link
Contributor

manast commented Aug 26, 2021

In Bull av3 all jobs get the name "default". It has not a lot of uses other than look nicer on a UI. You could also use it in your processor function to run different code depending on the job name...

@dtboy1995
Copy link
Author

@manast thank you for your explanation

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

2 participants