await_commit_recovery

Function await_commit_recovery 

Source
pub async fn await_commit_recovery(log: impl Fn(&str)) -> bool
Expand description

Wait for system commit to recover above RESUME_FLOOR_MB, probing with exponential backoff (BACKOFF_STARTBACKOFF_CAP). Returns true once recovered, or false if OOM_RELAUNCH_DEADLINE elapses first (the caller then gives up gracefully). log is the launcher’s logger, threaded in so the wait is observable in the launcher log.