Преглед изворни кода

Added a check for syncing the schedule even if nothing is in the schedule.

Colin McIntosh пре 10 година
родитељ
комит
7d5a062280
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      celery/beat.py

+ 2 - 0
celery/beat.py

@@ -504,6 +504,8 @@ class Service(object):
                     debug('beat: Waking up %s.',
                           humanize_seconds(interval, prefix='in '))
                     time.sleep(interval)
+                    if self.scheduler.should_sync():
+                        self.scheduler._do_sync()
         except (KeyboardInterrupt, SystemExit):
             self._is_shutdown.set()
         finally: