ecto_job v0.2.0 EctoJob.Worker View Source

Worker module responsible for executing a single Job

Link to this section Summary

Functions

Equivalent to start_link(repo, job, DateTime.utc_now())

Start a worker process given a repo module and a job struct This may fail if the job reservation has expired, in which case the job will be reactivated by the producer

Link to this section Types

Link to this section Functions

Link to this function start_link(repo, job) View Source
start_link(repo(), EctoJob.JobQueue.job()) :: {:ok, pid()}

Equivalent to start_link(repo, job, DateTime.utc_now())

Link to this function start_link(repo, job, now) View Source
start_link(repo(), EctoJob.JobQueue.job(), DateTime.t()) :: {:ok, pid()}

Start a worker process given a repo module and a job struct This may fail if the job reservation has expired, in which case the job will be reactivated by the producer.