View Source Whisperer.Orchestrator.Supervisor (Whisperer v0.1.0)

Dynamic supervisor for orchestrator processes. Each session gets its own orchestrator process.

Summary

Functions

Returns a specification to start this module under a supervisor.

Gets the orchestrator process for a session, starting one if it doesn't exist.

Starts a new orchestrator process for a session.

Returns the process name for a session's orchestrator.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_orchestrator(session_id)

Gets the orchestrator process for a session, starting one if it doesn't exist.

start_link(init_arg)

start_orchestrator(session_id, sequencer, context)

@spec start_orchestrator(binary(), module(), map()) ::
  :ignore | {:error, any()} | {:ok, pid()} | {:ok, pid(), any()}

Starts a new orchestrator process for a session.

via_tuple(session_id)

Returns the process name for a session's orchestrator.