Jobs

General

  • Use jobs to handle long running tasks
  • Jobs should be queued
  • Use the dispatch helper function to dispatch jobs
  • Where possible, use the ShouldQueue interface

Job Controls

  • If rate limiting is required, create a job middleware to apply the rate limiting
  • Use $tries to control the number of times a job is attempted
  • Use $timeout to control the maximum time a job can run
  • Use $maxExceptions to control the number of exceptions before a job is marked as failed
Previous
Home
Next
Models