Jobs
General
- Use jobs to handle long running tasks
- Jobs should be queued
- Use the
dispatchhelper function to dispatch jobs - Where possible, use the
ShouldQueueinterface
Job Controls
- If rate limiting is required, create a job middleware to apply the rate limiting
- Use
$triesto control the number of times a job is attempted - Use
$timeoutto control the maximum time a job can run - Use
$maxExceptionsto control the number of exceptions before a job is marked as failed