Quantum v2.3.4 Quantum.Executor View Source
Task to actually execute a Task
Link to this section Summary
Link to this section Functions
Returns a specification to start this module under a supervisor.
arg
is passed as the argument to Task.start_link/1
in the :start
field
of the spec.
For more information, see the Supervisor
module,
the Supervisor.child_spec/2
function and the Supervisor.child_spec/0
type.
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 tasktask_registry
- The registry that knows if a task is already runningmessage
- The Message to Execute ({:execute, %Job{}}
)