mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
more celery rollback
* Setting reload code calls a celery 4.x method signature. This changes it back to a 3.x safe call.
This commit is contained in:
parent
8a25342ce5
commit
e2ed1542e6
@ -26,7 +26,7 @@ def _reset_celery_thread_pool():
|
||||
# Do not use current_app because of this outstanding issue:
|
||||
# https://github.com/celery/celery/issues/4410
|
||||
app = Celery('awx')
|
||||
app.config_from_object('django.conf:settings', namespace='CELERY')
|
||||
app.config_from_object('django.conf:settings')
|
||||
app.control.broadcast('pool_restart', arguments={'reload': True},
|
||||
destination=['celery@{}'.format(settings.CLUSTER_HOST_ID)], reply=False)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user