Skip to content

Commit

Permalink
Added _default_now backwards compatibility alias
Browse files Browse the repository at this point in the history
  • Loading branch information
mkai authored and georgepsarakis committed Sep 3, 2017
1 parent 4f77d42 commit e3dd0ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions celery/beat.py
Expand Up @@ -102,6 +102,7 @@ def __init__(self, name=None, task=None, last_run_at=None,

def default_now(self):
return self.schedule.now() if self.schedule else self.app.now()
_default_now = default_now # compat

def _next_instance(self, last_run_at=None):
"""Return new instance, with date and count fields updated."""
Expand Down

0 comments on commit e3dd0ff

Please sign in to comment.