Skip to main content

aion_server/worker/supervisor/
mod.rs

1//! Module declarations.
2
3/// The one triage every "the record is written; now make it so" caller uses.
4pub mod converge_report;
5/// Typed managed-worker supervision failures, each carrying its remedy.
6pub mod error;
7/// Which executable a builtin deployment launches, and what it is at spawn.
8pub mod executable;
9/// The supervisor itself: desired state in, running processes out.
10pub mod fleet;
11/// One supervised instance: spawn, observe, restart, stop.
12mod instance;
13/// The operator-configured restart discipline. No invented numbers.
14pub mod policy;
15/// What the server says about a managed worker: desired joined with actual.
16pub mod status;
17
18#[cfg(test)]
19#[path = "fleet_tests.rs"]
20mod tests;
21
22pub use converge_report::converge_and_report;
23pub use error::SupervisionError;
24pub use executable::ManagedExecutable;
25pub use fleet::{Convergence, FleetShutdownReport, WorkerSupervisor};
26pub use policy::{SupervisionPolicy, UNCOMMISSIONED_REMEDY};
27pub use status::{
28    ManagedWorkerExit, ManagedWorkerReport, ManagedWorkerState, ManagedWorkerStatus, SpawnedBinary,
29};