ecto_job v2.1.0 EctoJob.Worker View Source
Worker module responsible for executing a single Job
Link to this section Summary
Functions
Equivalent to start_link(config, 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 type
repo()
View Source
repo()
View Source
repo() :: module()
repo() :: module()
Link to this section Functions
Link to this function
start_link(config, job)
View Source
start_link(config, job)
View Source
start_link(EctoJob.Config.t(), EctoJob.JobQueue.job()) :: {:ok, pid()}
start_link(EctoJob.Config.t(), EctoJob.JobQueue.job()) :: {:ok, pid()}
Equivalent to start_link(config, job, DateTime.utc_now())
Link to this function
start_link(config, job, now)
View Source
start_link(config, job, now)
View Source
start_link(EctoJob.Config.t(), EctoJob.JobQueue.job(), DateTime.t()) ::
{:ok, pid()}
start_link(EctoJob.Config.t(), 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.