Quantum v2.3.3 Quantum.Executor View Source

Task to actually execute a Task

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Start the Task

Link to this section Functions

Link to this function child_spec(arg) View Source (since 1.5.0)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function start_link(opts, event) View Source
start_link(
  {GenServer.server(), GenServer.server(), boolean()},
  {:execute, Quantum.Job.t()}
) :: {:ok, pid()}
start_link(Quantum.Executor.StartOpts.t(), {:execute, Quantum.Job.t()}) ::
  {:ok, pid()}

Start the Task

Arguments

  • task_supervisor - The supervisor that runs the task
  • task_registry - The registry that knows if a task is already running
  • message - The Message to Execute ({:execute, %Job{}})