Skip to main content

report_startup_progress

Function report_startup_progress 

Source
async fn report_startup_progress(server: Arc<Server>)
Expand description

Reports the long startup phase in flight and keeps the service manager waiting for it.

A database migration can run for many minutes with nothing else to show for it, so every tick logs the phase, its position and how long it has been running. The same tick extends systemd’s timeout, which covers the stop timeout as well as the start timeout, so ending this task early lets a stop request kill a migration mid-write.