Skip to content

Commit

Permalink
get interval total seconds convert to int
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaChuvaev committed Feb 13, 2024
1 parent e6705fb commit 89203dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sharded_queue/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ class RecurrentRequest(NamedTuple):
@classmethod
def get_interval(cls, interval: int | float | timedelta) -> float:
if isinstance(interval, timedelta):
return float(interval.total_seconds())
return float(int(interval.total_seconds()))

return float(interval)

Expand Down

0 comments on commit 89203dd

Please sign in to comment.