View Source Que.Job (Que v0.10.1)
Module to manage a Job's state and execute the worker's callbacks.
Defines a Que.Job
struct an keeps track of the Job's worker, arguments,
status and more. Meant for internal usage, so you shouldn't use this
unless you absolutely know what you're doing.
Link to this section Summary
Functions
Handles Job Failure, Calls appropriate worker method and updates the job status to :failed
Handles Job Success, Calls appropriate worker method and updates the job status to :completed
Returns a new Job struct with defaults
Updates the Job struct with new status and spawns & monitors a new Task under the TaskSupervisor which executes the perform method with supplied arguments
Update the Job status to one of the predefined values in @statuses
Link to this section Types
Link to this section Functions
Specs
Handles Job Failure, Calls appropriate worker method and updates the job status to :failed
Specs
Handles Job Success, Calls appropriate worker method and updates the job status to :completed
Specs
new(worker :: Que.Worker.t(), args :: list()) :: t()
Returns a new Job struct with defaults
Specs
Updates the Job struct with new status and spawns & monitors a new Task under the TaskSupervisor which executes the perform method with supplied arguments
Specs
Update the Job status to one of the predefined values in @statuses