DEV Community

Garrick Crouch
Garrick Crouch

Posted on

3 1

What Does 'queue:listen' actually do in Laravel?

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
Enter fullscreen mode Exit fullscreen mode

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.

Top comments (0)

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay