copr: backend: patch for fedora-infrastructure/issue/8560

This commit is contained in:
Pavel Raiskup 2020-01-20 11:01:08 +01:00 committed by Pierre-Yves Chibon
parent 33b6ff60e0
commit 5660644d5c
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,12 @@
https://pagure.io/fedora-infrastructure/issue/8560
--- /usr/share/copr/backend/msgbus.py 2020-01-15 08:23:09.000000000 +0000
+++ /usr/share/copr/backend/msgbus.py 2020-01-20 09:53:36.100341122 +0000
@@ -181,6 +181,7 @@
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)

View file

@ -38,6 +38,11 @@
dest=/usr/bin/copr-repo
tags: patches
- name: patch for https://pagure.io/fedora-infrastructure/issue/8560
patch: src=patches/dont-send-msg-N-times.patch
dest=/usr/share/copr/backend/msgbus.py
tags: patches
- name: install openstackclient for image preparation
dnf: state=present name=python3-openstackclient
when: devel|bool