Explorar el Código

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

Colin McIntosh hace 10 años
padre
commit
899e23edc5
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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: