Modify message deadline/timeout by the natsgo client #962
Answered
by
derekcollison
in-cloud-opensource
asked this question in
Q&A
-
Is there a way to set the acknowledge deadline for a single message by the nats client? |
Beta Was this translation helpful? Give feedback.
Answered by
derekcollison
Apr 20, 2022
Replies: 1 comment
-
This is set per consumer. However if you need more time for an individual message you can call m.Progress() which resets the timer. So if you have AckWait of 30s, and you know you need to take longer, calling ack.Progress() will reset the time to another 30s from when Progress() is called. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
derekcollison
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is set per consumer. However if you need more time for an individual message you can call m.Progress() which resets the timer. So if you have AckWait of 30s, and you know you need to take longer, calling ack.Progress() will reset the time to another 30s from when Progress() is called.