コード例 #1
0
ファイル: scheduler.py プロジェクト: FaridGaffoor/Flexget
def run_job(tasks):
    """Add the execution to the queue and waits until it is finished"""
    from flexget.manager import manager

    finished_events = manager.execute(options={"tasks": tasks, "cron": True}, priority=5)
    for task_id, task_name, event in finished_events:
        event.wait()
コード例 #2
0
ファイル: scheduler.py プロジェクト: Lukeid/Flexget
def run_job(tasks):
    """Add the execution to the queue and waits until it is finished"""
    log.debug('executing tasks: %s', tasks)
    finished_events = manager.execute(options={'tasks': tasks, 'cron': True}, priority=5)
    for task_id, task_name, event in finished_events:
        log.debug('task finished executing: %s', task_name)
        event.wait()
    log.debug('all tasks in schedule finished executing')
コード例 #3
0
def run_job(tasks):
    """Add the execution to the queue and waits until it is finished"""
    log.debug('executing tasks: %s', tasks)
    finished_events = manager.execute(options={'tasks': tasks, 'cron': True, 'allow_manual': False}, priority=5)
    for _, task_name, event in finished_events:
        log.debug('task finished executing: %s', task_name)
        event.wait()
    log.debug('all tasks in schedule finished executing')
コード例 #4
0
ファイル: scheduler.py プロジェクト: JorisDeRieck/Flexget
def run_job(tasks):
    """Add the execution to the queue and waits until it is finished"""
    log.debug("executing tasks: %s", tasks)
    finished_events = manager.execute(options={"tasks": tasks, "cron": True, "allow_manual": False}, priority=5)
    for _, task_name, event in finished_events:
        log.debug("task finished executing: %s", task_name)
        event.wait()
    log.debug("all tasks in schedule finished executing")
コード例 #5
0
def run_job(tasks):
    """Add the execution to the queue and waits until it is finished"""
    finished_events = manager.execute(options={
        'tasks': tasks,
        'cron': True
    },
                                      priority=5)
    for task_id, task_name, event in finished_events:
        event.wait()
コード例 #6
0
ファイル: scheduler.py プロジェクト: thomaswr/Flexget
def run_job(tasks):
    """Add the execution to the queue and waits until it is finished"""
    from flexget.manager import manager
    finished_events = manager.execute(options={
        'tasks': tasks,
        'cron': True
    },
                                      priority=5)
    for event in finished_events:
        event.wait()
コード例 #7
0
ファイル: scheduler.py プロジェクト: ningod/Flexget
def run_job(tasks):
    """Add the execution to the queue and waits until it is finished"""
    from flexget.manager import manager
    finished_events = manager.execute(options={'tasks': tasks, 'cron': True}, priority=5)
    for event in finished_events:
        event.wait()
コード例 #8
0
ファイル: scheduler.py プロジェクト: aivarasko/Flexget
def run_job(tasks):
    """Add the execution to the queue and waits until it is finished"""
    finished_events = manager.execute(options={'tasks': tasks, 'cron': True}, priority=5)
    for task_id, task_name, event in finished_events:
        event.wait()