From b8b6b46ce7df2b80be110dd93cc795eb47a78549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Wed, 3 May 2023 14:20:57 +0200 Subject: [PATCH] Set the priority in the fedora-messaging notifier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit According to [infra ticket #10899](https://pagure.io/fedora-infrastructure/issue/10899), ostree messages should have prioriy 3. Signed-off-by: Aurélien Bompard --- pungi/scripts/fedmsg_notification.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pungi/scripts/fedmsg_notification.py b/pungi/scripts/fedmsg_notification.py index db5dc01f..e2c05c55 100644 --- a/pungi/scripts/fedmsg_notification.py +++ b/pungi/scripts/fedmsg_notification.py @@ -14,6 +14,9 @@ def send(cmd, data): topic = "compose.%s" % cmd.replace("-", ".").lower() try: msg = fedora_messaging.api.Message(topic="pungi.{}".format(topic), body=data) + if cmd == "ostree": + # https://pagure.io/fedora-infrastructure/issue/10899 + msg.priority = 3 fedora_messaging.api.publish(msg) except fedora_messaging.exceptions.PublishReturned as e: print("Fedora Messaging broker rejected message %s: %s" % (msg.id, e))