mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-13 16:59:52 +08:00
database: listen to rida.component.state.change (failover)
This commit is contained in:
@@ -241,7 +241,7 @@ class ComponentBuild(Base):
|
||||
|
||||
@classmethod
|
||||
def from_fedmsg(cls, session, msg):
|
||||
if '.buildsys.build.state.change' not in msg['topic']:
|
||||
if 'component.state.change' not in msg['topic'] and '.buildsys.build.state.change' not in msg['topic']:
|
||||
raise ValueError("%r is not a koji message." % msg['topic'])
|
||||
return session.query(cls).filter(cls.task_id==msg['msg']['task_id']).first()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user