Beispiel #1
0
def restart_resubmit_scheduler(state: SQLManager, scheduler: ZoeScheduler):
    """Restart work after a restart of the process."""
    sched_execs = state.execution_list(status=Execution.SCHEDULED_STATUS)
    for e in sched_execs:
        scheduler.incoming(e)

    clean_up_execs = state.execution_list(status=Execution.CLEANING_UP_STATUS)
    for e in clean_up_execs:
        scheduler.terminate(e)

    starting_execs = state.execution_list(status=Execution.STARTING_STATUS)
    for e in starting_execs:
        scheduler.terminate(e)
        scheduler.incoming(e)
def restart_resubmit_scheduler(state: SQLManager, scheduler: ZoeScheduler):
    """Restart work after a restart of the process."""
    sched_execs = state.execution_list(status=Execution.SCHEDULED_STATUS)
    for e in sched_execs:
        scheduler.incoming(e)

    clean_up_execs = state.execution_list(status=Execution.CLEANING_UP_STATUS)
    for e in clean_up_execs:
        scheduler.terminate(e)

    starting_execs = state.execution_list(status=Execution.STARTING_STATUS)
    for e in starting_execs:
        scheduler.terminate(e)
        scheduler.incoming(e)
Beispiel #3
0
def execution_terminate(scheduler: ZoeScheduler, execution: Execution):
    """Remove an execution form the scheduler."""
    scheduler.terminate(execution)
def execution_terminate(scheduler: ZoeScheduler, execution: Execution):
    """Remove an execution form the scheduler."""
    scheduler.terminate(execution)