Ejemplo n.º 1
0
def _remote_run_for_local_run(local_run):
    remote_lock = remote_run_support.lock_for_run(local_run)
    if not remote_lock:
        return None
    remote = _remote_for_lock(remote_lock, local_run)
    if not remote:
        return None
    return _remote_run(remote, local_run.id)
Ejemplo n.º 2
0
def _stop_run(run, no_wait):
    remote_lock = remote_run_support.lock_for_run(run)
    if remote_lock:
        _try_stop_remote_run(run, remote_lock, no_wait)
    else:
        _try_stop_local_run(run)
Ejemplo n.º 3
0
def _maybe_sync_run(run, watch):
    remote_lock = remote_run_support.lock_for_run(run)
    if remote_lock:
        _try_sync(run, remote_lock, watch)