call celery method with celery context

* Tracebacks are more informative this way.
This commit is contained in:
chris meyers 2018-03-26 12:02:42 -04:00
parent 4c2cff7a63
commit 1503e0505e

View File

@ -180,7 +180,7 @@ def apply_cluster_membership_policies(self):
g.instances.append(i.obj.id)
g.obj.instances.add(i.obj)
i.groups.append(g.obj.id)
handle_ha_toplogy_changes()
handle_ha_toplogy_changes.apply([])
@shared_task(queue='tower_broadcast_all', bind=True, base=LogErrorsTask)