From ab80f5c5d62af007457e10a7ea7b3da35e601c37 Mon Sep 17 00:00:00 2001 From: "andrew (from workstation)" Date: Wed, 6 Nov 2019 16:09:41 +0100 Subject: [PATCH] merge upstream async worker --- async_worker/async_worker.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/async_worker/async_worker.py b/async_worker/async_worker.py index e26e0e2..b2f644b 100644 --- a/async_worker/async_worker.py +++ b/async_worker/async_worker.py @@ -71,9 +71,12 @@ class AsyncTask(abc.ABC): self._ready = True if result is None: - return True + return 0 - return result + if not result: + return False + + return 0 async def setup(self) -> bool: pass