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:
chris meyers 2018-03-09 09:27:09 -05:00
parent 8a25342ce5
commit e2ed1542e6

View File

@ -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)