Skip to content

Commit

Permalink
Beat: Allow float in schedule value. Closes celery#3260
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Jun 22, 2016
1 parent 152ee2c commit 7caafb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion celery/schedules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7caafb4

Please sign in to comment.