示例#1
0
文件: __init__.py 项目: loles/solar-1
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()
示例#2
0
文件: __init__.py 项目: loles/solar-1
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()
示例#3
0
文件: __init__.py 项目: loles/solar-1
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()
示例#4
0
文件: __init__.py 项目: loles/solar-1
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()
示例#5
0
文件: __init__.py 项目: loles/solar-1
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()