Browse Source

celerybeat must finalize the celery instance

Ask Solem 13 năm trước cách đây
mục cha
commit
095c710bc2
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      celery/apps/beat.py

+ 1 - 0
celery/apps/beat.py

@@ -96,6 +96,7 @@ class Beat(configurated):
         # Run the worker init handler.
         # (Usually imports task modules and such.)
         self.app.loader.init_worker()
+        self.app.finalize()
 
     def startup_info(self, beat):
         scheduler = beat.get_scheduler(lazy=True)