fix: complete logic audit — mark_completed on transfer, reset_state for interactive source, proper error propagation, user-visible commands

This commit is contained in:
2026-05-22 21:05:16 +04:00
parent 97b3623915
commit addbb3795f
5 changed files with 11 additions and 5 deletions
+4
View File
@@ -111,3 +111,7 @@ def do_transfer():
run(f"ssh {ssh_opts} {user}@{host} 'cd /opt/docker-migrate-tool && python3 core/main.py --mode=target --remote-dir={remote_dir}'", check=False)
else:
success(f"Архив передан. Запустите на target: python3 core/main.py --mode=target --remote-dir={remote_dir}")
# Transfer выполнен — отмечаем выполненным, чтобы resume не повторял
state.mark_completed("TRANSFER")
state.set_stage("DONE")