mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
Fix an issue where missing instance group would cause an error
We'll now default to queue submission to the basic management queue
This commit is contained in:
parent
0046b25fa0
commit
2f3d7b17f6
@ -277,7 +277,11 @@ class TaskManager():
|
||||
def post_commit():
|
||||
task.websocket_emit_status(task.status)
|
||||
if task.status != 'failed':
|
||||
task.start_celery_task(opts, error_callback=error_handler, success_callback=success_handler, queue=rampart_group.name)
|
||||
if rampart_group is not None:
|
||||
actual_queue=rampart_group.name
|
||||
else:
|
||||
actual_queue=settings.CELERY_DEFAULT_QUEUE
|
||||
task.start_celery_task(opts, error_callback=error_handler, success_callback=success_handler, queue=actual_queue)
|
||||
|
||||
connection.on_commit(post_commit)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user