diff --git a/buildman/component/buildcomponent.py b/buildman/component/buildcomponent.py index 1f4d364ae..14df0c6aa 100644 --- a/buildman/component/buildcomponent.py +++ b/buildman/component/buildcomponent.py @@ -159,10 +159,7 @@ class BuildComponent(BaseComponent): def build_complete_callback(result): """ This function is used to execute a coroutine as the callback. """ - @trollius.coroutine - def closure(): - yield From(self._build_complete(result)) - trollius.ensure_future(closure()) + trollius.ensure_future(self._build_complete(result)) self.call("io.quay.builder.build", **build_arguments).add_done_callback(build_complete_callback)