Quantum v2.2.6 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

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function start_link(arg1, arg2) View Source
start_link(
  {GenServer.server(), GenServer.server()},
  {: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{}})