Entropy.Supervisor (Entropy v0.1.0)

View Source

The root supervisor for the Entropy system.

Strategy

Uses :rest_for_one. The supervision order is strictly defined to ensure dependencies are available before consumers start:

  1. Safety & State: CircuitBreaker, ZombieRegistry, ImmunityRegistry. (Fundamental storage and safety checks).
  2. Data Provision: Census. (Requires state to be stable and provides data to the Scheduler).
  3. Logic: Scheduler. (Consumer. Depends on all previous processes).

If a state process crashes, the Scheduler is restarted to ensure it reconnects to the refreshed state processes.

Child Conditional Loading

Children are dynamically filtered based on Entropy.Config.is_injection_enabled?/0.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)