| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
Here are all the commands you can use with the Queue library.
Available options:
Allows you to publish a configuration class in the application namespace.
php spark queue:publish
Generates a new job file.
php spark queue:job Email
It will generate the Email class in the App\Jobs namespace.
Allows you to consume jobs from a specific queue.
php spark queue:work emails -max-jobs 5
It will listen for 5 jobs from the emails queue and then stop.
php spark queue:work emails -max-jobs 5 -priority low,high
It will work the same as the previous command but will first consume jobs from the emails queue that were added with the low priority.
Allows you to stop a specific queue in a safe way. It does this as soon as the job that is running in the queue is completed.
php spark queue:stop emails
Allows you to remove all jobs from a specific queue.
php spark queue:clear emails
Allows you to view all failed jobs. Also only from a specific queue
php spark queue:failed -queue emails
It will list failed jobs from the emails queue.
Allows you to retry failed jobs back to the queue.
php spark queue:retry all -queue emails
It will retry all the failed jobs from the emails queue.
Allows you to delete the failed job by ID
php spark queue:forget 123
Allows you to delete many failed jobs at once. Based on the failed date and queue.
php spark queue:flush -hours 6
It will delete all failed jobs older than 6 hours.
| Back | FazBrowse Home | New Git URL |