DEV Community

Jitesh Dhamaniya
Jitesh Dhamaniya

Posted on • Edited on

Queues not running in laravel

Hi, Recently when i tried to run queues on localhost, i encountered very strange problem. the command for running a queue in laravel

php artisan queue:listen

stopped working for me. i tried QUEUE_CONNECTION=SYNC which worked but any other connection would not.

Later i realised it was because apparently my application was in maintenance mode or i had run php artisan down command and never did this up. So even my application was running, it was according to kernel was in down or maintenance mode. once i ran command php artisan up, it started working again.

just wanted to write this down here, if anybody else encounter same problem.

UPDATE

upon investigation i realised down command creates a file storage/framework/down which apparently tell application its in maintenance mode. php artisan up simply delete this file, which let the whole application know its up.

UPDATE

Documentation says --force flag should make it work in maintenance mode but it does not seems to work for me.

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

👋 Kindness is contagious

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

Okay