Skip to content

Commit

Permalink
use a better value to represent infinity
Browse files Browse the repository at this point in the history
  • Loading branch information
bcavagnolo committed Jul 15, 2024
1 parent 5628bab commit fe8f424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/datalake/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe8f424

Please sign in to comment.