示例#1
0
 def __init__(self, *args, **kwargs):
     ExecBackend.__init__(self, *args, **kwargs)
     self.backend = None
示例#2
0
 def __init__(self, *args, **kwargs):
     ExecBackend.__init__(self, *args, **kwargs)
     self.backend = None
示例#3
0
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()
示例#4
0
def abort_task(task):
    """Try to abort a running task"""
    from yabi.backend.execbackend import ExecBackend
    backend = ExecBackend.factory(task)
    backend.abort_task()
示例#5
0
def submit_task(task):
    """Submit a task"""
    from yabi.backend.execbackend import ExecBackend
    backend = ExecBackend.factory(task)
    backend.submit_task()