Daily Archives: 12/26/2017

Laravel Queue and Job

Official Doc: https://laravel.com/docs/5.3/queues#introduction

Command to build job class:

Command to dispatch job:

Command to execute start queue worker:

Note:

  • Every time related scripts are changed, the queue worker must be restarted or the job will always read the script in some cache.