mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 08:37:48 -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])]
|
callbacks=[self.process_task])]
|
||||||
|
|
||||||
def process_task(self, body, message):
|
def process_task(self, body, message):
|
||||||
if "uuid" in body:
|
if "uuid" in body and body['uuid']:
|
||||||
queue = UUID(body['uuid']).int % settings.JOB_EVENT_WORKERS
|
try:
|
||||||
|
queue = UUID(body['uuid']).int % settings.JOB_EVENT_WORKERS
|
||||||
|
except Exception:
|
||||||
|
queue = self.total_messages % settings.JOB_EVENT_WORKERS
|
||||||
else:
|
else:
|
||||||
queue = self.total_messages % settings.JOB_EVENT_WORKERS
|
queue = self.total_messages % settings.JOB_EVENT_WORKERS
|
||||||
self.write_queue_worker(queue, body)
|
self.write_queue_worker(queue, body)
|
||||||
|
|||||||
Reference in New Issue
Block a user