def construct_tasks(extensions, clients): tasks = extensions['tasks'] loader.load_contruct_hooks('tasks', extensions, clients) tasks_executor = Executor(tasks, clients['tasks'].connect_to) tasks.for_all.before(tasks_executor.register_task) tasks_executor.run()
def construct_scheduler(extensions, clients): scheduler = extensions['scheduler'] loader.load_contruct_hooks('scheduler', extensions, clients) scheduler_executor = Executor( scheduler, clients['scheduler'].connect_to) scheduler_executor.run()
def construct_system_log(extensions, clients): syslog = extensions['system_log'] loader.load_contruct_hooks('system_log', extensions, clients) Executor(syslog, clients['system_log'].connect_to).run()
def construct_scheduler(extensions, clients): scheduler = extensions['scheduler'] loader.load_contruct_hooks('scheduler', extensions, clients) scheduler_executor = Executor(scheduler, clients['scheduler'].connect_to) scheduler_executor.run()