Skip to content

pulse_worker: don't prefetch more than one message (bug 1981900)#78

Merged
shtrom merged 15 commits intomainfrom
bug1981900/message-processing-order
Jan 15, 2026
Merged

pulse_worker: don't prefetch more than one message (bug 1981900)#78
shtrom merged 15 commits intomainfrom
bug1981900/message-processing-order

Conversation

@shtrom
Copy link
Member

@shtrom shtrom commented Jan 14, 2026

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.

This also updates the test setup to be consistent on the queues that are created and used, as well as to use the correct type (topic) as mandated by Pulse [0].

[0] https://wiki.mozilla.org/Auto-tools/Projects/Pulse#:~:text=Exchanges%20MUST%20be%20topic%20exchanges


  • application: log push_id consistently
  • tests: Pulse exchanges MUST be topic exchanges
  • test_integration: test reordering on message requeing (bug 1981900)
  • pulse_worker: don't prefetch more than one message (bug 1981900)
  • events: add __str__ showing push_id and repo_url

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.
@shtrom shtrom requested review from cgsheeh and zzzeid January 14, 2026 05:20
@shtrom shtrom merged commit a2bec59 into main Jan 15, 2026
3 checks passed
@shtrom shtrom deleted the bug1981900/message-processing-order branch January 15, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants