Replies: 4 comments 5 replies
-
It is documented here: https://docs.bullmq.io/ |
Beta Was this translation helpful? Give feedback.
-
Hi, can you cite the passage that answers my questions? I don't think they are documented. |
Beta Was this translation helpful? Give feedback.
-
If you are saying that event messages -- e.g. It's also not documented whether any re-delivered message would be re-delivered to any worker, or only workers attached to the same namespace. |
Beta Was this translation helpful? Give feedback.
-
Events, as any events in Node, do not provide any guarantees. The processor in the workers is what gives you the mechanism to achieve at-least-one semantics. This is documented if you really care to look into it. There are also loads of tutorials with much more information here: https://blog.taskforce.sh/ |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I do not see any description of the guarantees about message re-delivery.
If I attach an event listener to my worker, and the worker node crashes in the middle of processing a message, will the message get re-delivered to another worker? Or is that message lost forever?
Describe the solution you'd like
Please add some documentation around message delivery guarantees.
If messages are lost forever if the worker node crashes in the middle of message processing, this should be clearly documented and there should be recommendations for how to recover from missing messages.
Ideally, there should be an optional (if configured) synchronous
ack
method on the message, and the message should redeliver if this ack function is not called within the configured message lock period.Describe alternatives you've considered
Additional context
N/A
Edit: to clarify, when I say messages, I mean the job event messages that are emitted to the worker or QueueEvents event listeners. I'm not referring to Job redelivery, which is documented.
Beta Was this translation helpful? Give feedback.
All reactions