copr: backend: patch for fedora-infrastructure/issue/8560
This commit is contained in:
parent
33b6ff60e0
commit
5660644d5c
2 changed files with 17 additions and 0 deletions
12
roles/copr/backend/files/patches/dont-send-msg-N-times.patch
Normal file
12
roles/copr/backend/files/patches/dont-send-msg-N-times.patch
Normal 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)
|
|
@ -38,6 +38,11 @@
|
||||||
dest=/usr/bin/copr-repo
|
dest=/usr/bin/copr-repo
|
||||||
tags: patches
|
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
|
- name: install openstackclient for image preparation
|
||||||
dnf: state=present name=python3-openstackclient
|
dnf: state=present name=python3-openstackclient
|
||||||
when: devel|bool
|
when: devel|bool
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue