cbq Model
This model is provided to make certain tasks easier when defining and dispatching jobs, chains, and batches.
dispatch
Dispatches a job or chain of jobs.
Return: The dispatched Job instance.
job
Creates a job or chain of jobs to be dispatched.
Return: The new Job instance.
chain
Creates a chain of jobs to be ran.
Alias for calling firstJob.chain( otherJobs )
.
Return: The first job of the chain with the chained jobs configured to be dispatched.
batch
Creates a PendingBatch from the Jobs provided.
To use batches, you must first configure a BatchRepository
.
Learn more in the Batched Jobs documentation.
Return: The PendingBatch to be dispatched.