How to run job queue through command line in laravel?
You can run this Artisan Command php artisan queue:work --tries=3 OR --once --queue=JobQueueName
You can use both --tries or --once
. When you will use --once
then you command will execute singly and when you will use --tries=2
the it will execute two times and further.
BY Best Interview Question ON 02 Mar 2023