Skip to main content

Module srv_estart_wait

Module srv_estart_wait 

Source
Expand description

Waiting for srv’s readiness line (AGENTMUXSRV-ESTART), shared by the launcher and the CEF host.

The caller reads srv’s stderr, parses each line with crate::srv_stderr, and feeds four channels; this waits on them. A MIGRATING line extends the deadline from 30 seconds to 30 minutes: a shorter cap risks killing srv mid-migration, and 0011_shared_store_backfill’s skip-guards check for non-empty shared tables, so a partial copy followed by a kill would strand rows on the next retry.

Structs§

EstartChannels
What the stderr reader sends. needs_prepare is None for a caller that does not run the prepare step.

Enums§

EstartWait
How the wait ended.

Constants§

MIGRATION_TIMEOUT
The deadline once srv says it is migrating.
NORMAL_TIMEOUT
How long srv has to say it is ready.

Functions§

wait_for_estart
Wait for srv to be ready, fail, or run out of time. on_extend runs when a MIGRATING line pushes the deadline out, for the caller’s log line. The caller kills srv on every outcome but Ready(Some(_)).