Skip to content

Commit

Permalink
Merge pull request celery#3355 from air-upc/fix_timer
Browse files Browse the repository at this point in the history
Fix keywords params inconsistent problem when initialise Timer
  • Loading branch information
ask authored Aug 4, 2016
2 parents 29530fc + fddcb3e commit eac84af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions celery/worker/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def create(self, w):
w.timer_cls = w.pool_cls.Timer
w.timer = self.instantiate(w.timer_cls,
max_interval=w.timer_precision,
on_timer_error=self.on_timer_error,
on_timer_tick=self.on_timer_tick)
on_error=self.on_timer_error,
on_tick=self.on_timer_tick)

def on_timer_error(self, exc):
logger.error('Timer error: %r', exc, exc_info=True)
Expand Down

0 comments on commit eac84af

Please sign in to comment.