def __init__(self, *args, **kwargs): ExecBackend.__init__(self, *args, **kwargs) self.backend = None
def poll_task_status(task): """Poll the status of a task. Will raise a retry exception until complete.""" from yabi.backend.execbackend import ExecBackend backend = ExecBackend.factory(task) backend.poll_task_status()
def abort_task(task): """Try to abort a running task""" from yabi.backend.execbackend import ExecBackend backend = ExecBackend.factory(task) backend.abort_task()
def submit_task(task): """Submit a task""" from yabi.backend.execbackend import ExecBackend backend = ExecBackend.factory(task) backend.submit_task()