From 0c00c7fc781a0cdadda2df041b7bc50292543c6b Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Aug 05 2019 11:26:54 +0000 Subject: backend: fix wrong message validation class Reported by @redi on #fedora-admin channel: I got an email for each of the chroots, fairly soon after submitting the build (maybe right away, not sure) the email said "finished with 'running'" --- diff --git a/backend/backend/msgbus.py b/backend/backend/msgbus.py index 6a7fcfd..2e598d3 100644 --- a/backend/backend/msgbus.py +++ b/backend/backend/msgbus.py @@ -60,12 +60,12 @@ def message_from_worker_job(style, topic, job, who, ip, pid): 'chroot.start': { 'what': "chroot start: chroot:{chroot} user:{user}" \ " copr:{copr} pkg:{pkg} build:{build} ip:{ip} pid:{pid}", - 'class': schema.BuildChrootEndedV1, + 'class': schema.BuildChrootStartedV1DontUse, }, 'build.end': { 'what': "build end: user:{user} copr:{copr} build:{build}" \ " pkg:{pkg} version:{version} ip:{ip} pid:{pid} status:{status}", - 'class': schema.BuildChrootStartedV1DontUse, + 'class': schema.BuildChrootEndedV1, }, }