Cyclium.Reconciler (Cyclium v0.1.11)

Copy Markdown View Source

Detects spec changes and reconciles running actors.

Subscribes to "spec.updated" Bus events. When an actor's config or expectations change:

  1. Computes new config from the actor module
  2. Sends {:reconcile, new_config, new_expectations} to the actor GenServer
  3. Identifies orphaned blocked episodes (expectation removed) and cancels them

Starting

Added to Cyclium.Supervisor when reconciliation is enabled:

config :cyclium, reconciler: true

Summary

Functions

Returns a specification to start this module under a supervisor.

Trigger reconciliation for an actor module. Can be called programmatically or via the Bus event.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

reconcile_actor(module, payload \\ %{})

Trigger reconciliation for an actor module. Can be called programmatically or via the Bus event.

start_link(opts \\ [])