Return to Node Implementation Pattern
A Node should support controlled shutdown. Shutdown should allow the Node to stop work, release resources, publish final status where possible, and exit with a meaningful result.
A representative shutdown sequence is:
Stopping status.Stopped status where the runtime context still permits it.
Shutdown should distinguish controlled stop from failure. A Node that receives an expected stop command should not report Failed unless an error prevents controlled shutdown. A Node that crashes, loses a required dependency, cannot release resources safely, or exits unexpectedly should report or be recorded as Failed where possible.
The team should design shutdown behavior so that run scripts, stop scripts, containers, tests, and acceptance procedures can distinguish normal stop from abnormal termination.
© 2026 Dido Solutions, Inc. and Jackrabbit Consulting, Inc.