Skip to content

Commit 3fb90db

Browse files
committed
fixup! pulse_worker: don't prefetch more than one message (bug 1981900)
1 parent e94ad43 commit 3fb90db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git_hg_sync/pulse_worker.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ def get_consumers(
5555
self.task_queue,
5656
auto_declare=False,
5757
callbacks=[self.on_task],
58+
# We only fetch one message at a time in case processing it fails.
59+
# This allows us to ensure strict ordering, by re-receiving the same message
60+
# on the next loop after having requeued it after failure.
5861
prefetch_count=1,
5962
)
6063
logger.debug(f"Using consumer {consumer=}")

0 commit comments

Comments
 (0)