lifecycle
Bounded lifecycle stages with explicit task ownership and diagnostics.
- class bedrock_server_manager.services.lifecycle.LifecyclePhase(*values)
- bedrock_server_manager.services.lifecycle.is_application_ready(phase: str, *, state_loaded: bool, web_phase: str | None = None) bool
Require loaded state and ready application/web runtimes without starting services.
- async bedrock_server_manager.services.lifecycle.run_stage(name: str, action: Callable[[], Any], timeout: float, grace: float, *, owned_tasks: set[Task] | None = None, diagnostics: Diagnostics | None = None) None
Cancel overdue work without waiting indefinitely for cancellation handlers.