Skip to content

Commit 31fe7f6

Browse files
author
Gabriel Monroy
committed
change task invocation style
1 parent 6704c28 commit 31fe7f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def destroy(self):
446446
group(layer_tasks).apply_async().join()
447447
# call a celery task to update the formation data bag
448448
if settings.CHEF_ENABLED:
449-
controller.destroy_formation.apply_async(self.id).join() # @UndefinedVariable
449+
controller.destroy_formation.delay(self.id).wait() # @UndefinedVariable
450450

451451

452452
@python_2_unicode_compatible

0 commit comments

Comments
 (0)