diff --git a/executor/engine/job/base.py b/executor/engine/job/base.py index 7c60cc5..5a0decf 100644 --- a/executor/engine/job/base.py +++ b/executor/engine/job/base.py @@ -385,7 +385,7 @@ async def wait_until( timeout: T.Optional[float] = None ): """Wait until the check_func return True.""" - total_time = 0 + total_time = 0.0 while not check_func(self): await asyncio.sleep(self.wait_time_delta) total_time += self.wait_time_delta