From 7caafb4a6ce370a1045afad59ee7c08fec2aa8b2 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Wed, 22 Jun 2016 11:47:21 -0700 Subject: [PATCH] Beat: Allow float in schedule value. Closes #3260 --- celery/schedules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/celery/schedules.py b/celery/schedules.py index c828a87cb8c..16a8c685c1d 100644 --- a/celery/schedules.py +++ b/celery/schedules.py @@ -620,7 +620,7 @@ def __ne__(self, other): def maybe_schedule(s, relative=False, app=None): if s is not None: - if isinstance(s, numbers.Integral): + if isinstance(s, numbers.Number): s = timedelta(seconds=s) if isinstance(s, timedelta): return schedule(s, relative, app=app)