How to exit after job is done ? #3274
Unanswered
emmanuelgeoffray
asked this question in
Q&A
Replies: 1 comment
-
Jobs are processed as long as you have a worker instance running. It seems like you are more interested in manually processing jobs, that will of course not provide concurrency as you need to manage your jobs lifecycle manually: https://docs.bullmq.io/patterns/manually-fetching-jobs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there,
I'm currently testing to run BullMQ with Keda.
I've setup a demo as mentioned in this conversation.
I'm trying to use keda ScaledJob option, that starts a k8s Job, a one-off tasks that run to completion and then stop.
I've tried to exit like this :
but it randomly happens that a new bullmq job is started before exiting.
What would be the proper way to exit when the job is done and make sure that a new job is not started in the same instance ?
Beta Was this translation helpful? Give feedback.
All reactions