Explorar o código

Merge pull request #2645 from colinmcintosh/master

Added a check for syncing the schedule even if nothing is in the schedule
Omer Katz %!s(int64=9) %!d(string=hai) anos
pai
achega
514f23e03d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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: