issue-54-worker-rsync-state #56
@@ -366,13 +366,14 @@ def run_scheduled(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
result = run_rsync(
|
run_rsync_kwargs: dict[str, Any] = {
|
||||||
cmd,
|
"log_path": log_path,
|
||||||
log_path=log_path,
|
"timeout_seconds": timeout_seconds,
|
||||||
timeout_seconds=timeout_seconds,
|
"cancel_check": cancel_check,
|
||||||
cancel_check=cancel_check,
|
}
|
||||||
process_started=process_started if state_callback is not None else None,
|
if state_callback is not None:
|
||||||
)
|
run_rsync_kwargs["process_started"] = process_started
|
||||||
|
result = run_rsync(cmd, **run_rsync_kwargs)
|
||||||
log_tail = _read_log_tail(log_path)
|
log_tail = _read_log_tail(log_path)
|
||||||
warning = classify_rsync_warning(result.exit_code, log_tail)
|
warning = classify_rsync_warning(result.exit_code, log_tail)
|
||||||
successful_or_warning = result.exit_code == 0 or warning is not None
|
successful_or_warning = result.exit_code == 0 or warning is not None
|
||||||
|
|||||||
Reference in New Issue
Block a user