mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
Protect Tower from Ansible core making changes to the event uuids
This commit is contained in:
@@ -70,8 +70,11 @@ class CallbackBrokerWorker(ConsumerMixin):
|
||||
callbacks=[self.process_task])]
|
||||
|
||||
def process_task(self, body, message):
|
||||
if "uuid" in body:
|
||||
queue = UUID(body['uuid']).int % settings.JOB_EVENT_WORKERS
|
||||
if "uuid" in body and body['uuid']:
|
||||
try:
|
||||
queue = UUID(body['uuid']).int % settings.JOB_EVENT_WORKERS
|
||||
except Exception:
|
||||
queue = self.total_messages % settings.JOB_EVENT_WORKERS
|
||||
else:
|
||||
queue = self.total_messages % settings.JOB_EVENT_WORKERS
|
||||
self.write_queue_worker(queue, body)
|
||||
|
||||
Reference in New Issue
Block a user