From 8ca5dc97c26720d5e9758554d29771a497010e4d Mon Sep 17 00:00:00 2001 From: Duncan Hall Date: Fri, 25 Mar 2022 17:35:21 -0400 Subject: [PATCH] nonblocking AutoWorker --- sharpy/plans/acts/auto_worker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sharpy/plans/acts/auto_worker.py b/sharpy/plans/acts/auto_worker.py index 3130ce89..b997ea73 100644 --- a/sharpy/plans/acts/auto_worker.py +++ b/sharpy/plans/acts/auto_worker.py @@ -23,7 +23,8 @@ async def start(self, knowledge: "Knowledge"): async def execute(self) -> bool: self.act.to_count = min(self.to_count, self._optimal_count()) - return await self.act.execute() + await self.act.execute() + return True def _optimal_count(self) -> int: count = 1