LemonGateway.RunSupervisor (lemon_gateway v0.1.0)

View Source

DynamicSupervisor that manages LemonGateway.Run processes.

Internal gateway callers provide %{execution_request: %ExecutionRequest{}} after the public runtime boundary converts a core execution command. Each run is started as a temporary child so it is not restarted on failure.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts a new LemonGateway.Run process as a temporary child of this supervisor.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

start_run(args)

@spec start_run(map()) ::
  DynamicSupervisor.on_start_child() | {:error, :invalid_execution_request}

Starts a new LemonGateway.Run process as a temporary child of this supervisor.