Skip to main content

Module run

Module run 

Source
Expand description

Server run loop: configuration load, transports, and graceful shutdown. Run loop for the Aion workflow server: tracing initialization, configuration load, transport startup, and signal-driven graceful shutdown.

This is the library entry point behind the aion server command. It preserves the operational contract of the former standalone aion-server binary: exit code 2 for configuration errors, the drain outcome’s exit code on shutdown, and 130 when a second termination signal forces immediate exit.

Functions§

run
Run the Aion workflow server until it shuts down, returning the process exit code.