From fe8f424885f786bcea51dd8d15c61ada0ab9c2f7 Mon Sep 17 00:00:00 2001 From: Brian Cavagnolo Date: Mon, 15 Jul 2024 08:42:56 -0700 Subject: [PATCH] use a better value to represent infinity --- client/datalake/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/datalake/queue.py b/client/datalake/queue.py index 5f47cf4..6b24bdc 100644 --- a/client/datalake/queue.py +++ b/client/datalake/queue.py @@ -222,7 +222,7 @@ def _run(self, timeout): def _update_time_remaining(self): if self._run_time_remaining is self.INFINITY: - return self.INFINITY + return float(inf) now = time.time() duration = now - self._run_start self._run_time_remaining -= duration