diff --git a/sharded_queue/__init__.py b/sharded_queue/__init__.py index 634a51a..2a45f34 100644 --- a/sharded_queue/__init__.py +++ b/sharded_queue/__init__.py @@ -371,7 +371,7 @@ class RecurrentRequest(NamedTuple): @classmethod def get_interval(cls, interval: int | float | timedelta) -> float: if isinstance(interval, timedelta): - return float(interval.seconds) + return float(interval.total_seconds()) return float(interval)