Planck.Agent.Supervisor (Planck.Agent v0.1.0)

Copy Markdown View Source

Top-level supervisor for the planck_agent runtime.

Starts and supervises:

  • Planck.Agent.PubSubPhoenix.PubSub for agent event broadcasting
  • Planck.Agent.Registry — duplicate-key Registry for team discovery and agent lookup
  • Planck.Agent.TaskSupervisorTask.Supervisor for stream tasks
  • Planck.Agent.SessionSupervisorDynamicSupervisor for session processes
  • Planck.Agent.AgentSupervisorDynamicSupervisor for agent processes

Uses :one_for_all so the Registry and TaskSupervisor always restart together with the agents — a stale Registry after a crash would leave agents unable to find each other.

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 \\ [])

@spec start_link(keyword()) :: Supervisor.on_start()