From e9b55f20204e83a48ee3e293c71ef67d1cc05097 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Jan 20 2020 09:51:10 +0000 Subject: frontend: don't send the message N-times .. if everything goes well. Fixes: https://pagure.io/fedora-infrastructure/issue/8560 --- diff --git a/backend/backend/msgbus.py b/backend/backend/msgbus.py index 94225dc..534a374 100644 --- a/backend/backend/msgbus.py +++ b/backend/backend/msgbus.py @@ -181,6 +181,7 @@ class MsgBus(object): for attempt in range(1, self.opts.bus_publish_retries + 1): try: self._send_message(message) + break except Exception: # pylint: disable=W0703 # We don't want to halt the worker because of messaging. self.log.exception("Attempt %s to publish a message failed", attempt)