Skip to main content

Module supervise

Module supervise 

Source
Expand description

Server-task supervision: run a binary’s spawned servers until a shutdown signal, treating any earlier exit as fatal.

A process whose serving task has died must flip readiness off and exit (so the orchestrator restarts it) rather than keep answering /readyz over a dead surface.

Functions§

until_shutdown
Block until shutdown is cancelled or any task in servers finishes.