Aludel.Runs.Executor (aludel v0.2.0)

Copy Markdown View Source

Owns run launch and provider execution under explicit supervision.

Summary

Functions

Executes a run against one or more providers and returns a structured outcome.

Launches a run under the executor supervisor.

Types

execution_result()

@type execution_result() ::
  {:ok, Aludel.Runs.Execution.t()} | {:error, :empty_providers | term()}

Functions

execute(run, providers)

Executes a run against one or more providers and returns a structured outcome.

launch(run, providers)

@spec launch(Aludel.Runs.Run.t(), [Aludel.Providers.Provider.t()]) ::
  {:ok, pid()} | {:ok, pid(), term()} | {:error, :empty_providers | term()}

Launches a run under the executor supervisor.