Browse Source

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

Colin McIntosh 10 years ago
parent
commit
899e23edc5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      celery/beat.py

+ 2 - 0
celery/beat.py

@@ -476,6 +476,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: