소스 검색

Fix keywords params inconsistent problem when initialize Timer

xin li 8 년 전
부모
커밋
fddcb3ee9f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      celery/worker/components.py

+ 2 - 2
celery/worker/components.py

@@ -44,8 +44,8 @@ class Timer(bootsteps.Step):
                 w.timer_cls = w.pool_cls.Timer
                 w.timer_cls = w.pool_cls.Timer
             w.timer = self.instantiate(w.timer_cls,
             w.timer = self.instantiate(w.timer_cls,
                                        max_interval=w.timer_precision,
                                        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):
     def on_timer_error(self, exc):
         logger.error('Timer error: %r', exc, exc_info=True)
         logger.error('Timer error: %r', exc, exc_info=True)