Skip to content

Best way to way for a job #784

Answered by manast
MichielvdVelde asked this question in Q&A
Sep 30, 2021 · 4 comments · 3 replies
Discussion options

You must be logged in to vote

You could use this method: https://github.com/taskforcesh/bullmq/blob/master/docs/gitbook/api/bullmq.job.waituntilfinished.md

However, let me warn you that most likely you are using an anti-pattern, waiting for jobs to complete is not the best way to use queues, it does not scale well nor is the most robust way to handle jobs.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@MichielvdVelde
Comment options

@SwapnilSoni1999
Comment options

Answer selected by MichielvdVelde
Comment options

You must be logged in to vote
1 reply
@roggervalf
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants