Lightning.Collaboration.Supervisor (Lightning v2.18.0)

View Source

Supervisor for workflow collaboration infrastructure.

Manages the collaboration Registry, :pg process group, and a dynamic supervisor for workflow collaboration processes.

The Registry must be started first to ensure processes can register themselves during startup.

Summary

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_child(dynamic_supervisor \\ __MODULE__.DocSupervisor, child_spec)

start_link(opts)

Starts the collaboration supervisor.

The registered name is taken from the :name option (defaulting to __MODULE__). That name is the base from which init/1 derives the instance's Registry, :pg scope, and DynamicSupervisor names, so a test can start a fully isolated tree by passing a unique :name.

terminate_child(dynamic_supervisor \\ __MODULE__.DocSupervisor, pid)