What Does 'queue:listen' actually do in Laravel?
Garrick Crouch
Posted on October 14, 2021
When using the queue command in Laravel you may have noticed that you can do queue:work
or queue:listen
. The queue:listen
command in fact runs this:
php artisan queue:work --once --name=default --queue=default --backoff=0 --memory=128 --sleep=3 --tries=1
As you can see they're the exact same two commands under the hood. The listen just sets some simple options for you, like rebooting the framework on every job, so it makes development easier.
💖 💪 🙅 🚩
Garrick Crouch
Posted on October 14, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.