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§
- Estart
Channels - What the stderr reader sends.
needs_prepareisNonefor a caller that does not run the prepare step.
Enums§
- Estart
Wait - 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_extendruns when aMIGRATINGline pushes the deadline out, for the caller’s log line. The caller kills srv on every outcome butReady(Some(_)).