Skip to main content

run_prepare

Function run_prepare 

Source
async fn run_prepare(
    launcher_exe_dir: &Path,
    paths: &DataPaths,
    sink: &StartupEventSink,
) -> Result<(), SrvSpawnError>
Expand description

Run agentmux-srv migrate --prepare while srv is stopped, as the splash’s “Updating data” stage: copy the previous version’s data forward, back up, run the pending migrations, each a sub-row. The upgrade step of docs/specs/SPEC_FAST_STARTUP_UPGRADE_OWNS_MIGRATIONS_AND_UPDATES_2026_09_15.md §10, run by spawn_srv when srv reports AGENTMUXSRV-NEEDS-PREPARE.