Skip to main content
ug-core moves through seven states, always forward: A state can be skipped: a failed boot goes from Booting straight to Stopping. A skipped state is never reached.

Wait for Ready

On is sticky: a handler for a state already reached runs immediately. It never runs for a skipped state. Await returns false on timeout or when the state is skipped.

Check the state

Lifecycle events

In your resource, UgCore.Lifecycle mirrors ug-core’s state from these events. When ug-core restarts, your handlers keep working.