We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Make msg.nak() follow the set backoff strategy in the consumer.
msg.nak()
Given the following:
# Backoff strategy backoff = [2,4,8,16,32] # Consumer configuration config = ConsumerConfig( durable_name="action_workers", backoff=backoff, ack_wait=backoff[-1], max_deliver=len(backoff) + 1 ) # Subscribe sub = await js.pull_subscribe("action.process.*", durable="action_workers", config=config) while True: msgs = await sub.fetch(1) for msg in msgs: print(msg) msg.nak()
I would expect msg.nak() to make use of the backoff strategy. However backoff is only used for retries.
No response
The text was updated successfully, but these errors were encountered:
nak marks message for immediate redelivery, so it does not apply ack_wait, or backoff, which is used in case of user not sending back anything.
nak
ack_wait
backoff
You can however specify nak(delay) to achieve what I think would solve your use case.
nak(delay)
Sorry, something went wrong.
No branches or pull requests
Proposed change
Make
msg.nak()
follow the set backoff strategy in the consumer.Use case
Given the following:
I would expect
msg.nak()
to make use of the backoff strategy. However backoff is only used for retries.Contribution
No response
The text was updated successfully, but these errors were encountered: