pub(crate) fn spawn_run_drain(
state: &AppState,
handle: RunHandle,
drone_id: String,
started_at: i64,
ledger_run: Option<(Arc<RunLedger>, String)>,
)Expand description
Drain a run’s events on a background task; on completion, UPDATE the placeholder row in place and close the run ledger’s row.