From 8f86262284c7687f11b8bbe092b43370290a79d1 Mon Sep 17 00:00:00 2001 From: nanguage Date: Tue, 12 Mar 2024 10:33:46 +0100 Subject: [PATCH] fix type error --- executor/engine/job/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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