mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 02:30:01 -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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user