Lux.Company.ExecutionEngine.Supervisor (Lux v0.5.0)

View Source

Supervisor for the Objective Execution Engine.

This supervisor manages:

  1. A Registry for tracking objective processes
  2. A DynamicSupervisor for managing objective processes
  3. A Registry for task trackers
  4. A Registry for artifact stores
  5. A DynamicSupervisor for task trackers and artifact stores

Summary

Functions

Returns a specification to start this module under a supervisor.

Lists all running objective processes under this supervisor.

Starts a new objective process under this supervisor.

Stops an objective process and its associated components managed by this supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

list_objectives(supervisor)

Lists all running objective processes under this supervisor.

Returns a list of objective IDs.

start_link(opts)

start_objective(supervisor, objective, company_pid, input, objective_id \\ nil)

Starts a new objective process under this supervisor.

Returns {:ok, pid} if successful, {:error, reason} otherwise.

stop_objective(supervisor, objective_id)

Stops an objective process and its associated components managed by this supervisor.

Returns :ok if successful, {:error, reason} otherwise.