Commit 43213f9
committed
pulse_worker: don't prefetch more than one message (bug 1981900)
If the first message fails and needs requeuing, the Consumer will
immediately be given the next message in the batch. This leads to those
message being processed out-of-order.
By only fetching one message at a time, the Consumer will retrieve the
failed message again on the next fetch. It will continue looping on this
message forever until it succeeds, or someone intervenes.
This is the desired behaviour. This ensures that no message goes
silently unprocessed.1 parent 7accc40 commit 43213f9
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
0 commit comments