Beispiel #1
0
 def run_periodic_tasks(self):
     logger = get_default_logger()
     applied = default_periodic_status_backend.run_periodic_tasks()
     for task, task_id in applied:
         logger.debug(
             "PeriodicWorkController: Periodic task %s applied (%s)" % (
                 task.name, task_id))
Beispiel #2
0
 def run_periodic_tasks(self):
     default_periodic_status_backend.run_periodic_tasks()
Beispiel #3
0
 def run(self):
     """Don't use :meth:`run`. use :meth:`start`."""
     while True:
         default_periodic_status_backend.run_periodic_tasks()
         time.sleep(1)