Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jgravois's avatar

Pusher and the Queue Listener

I am using Pusher for the first time to power a 24/7 operations app and everything is working great EXCEPT the Queue Listener stops randomly both in Laravel Valet (where I am building the app) and on the Digital Ocean server.

  1. Is there a command that can be run to determine if the Queue is running?
  2. How do others using Pusher deal with Premature Queue Death?

thanks!!

0 likes
5 replies
jgravois's avatar

Thanks for the link.

Looks like I could use Forge and let it take care of Digital Ocean ... what about Laravel Valet ... I literally just spent 35 minutes looking for a bug until my co-worker reminded me the code is working and the tests prove it ... you queue is off.

bobbybouwmann's avatar

Mmh not sure yet. I never experienced this with Valet though. You might be able to setup supervisor locally, but that would be beyond this point of course

Let me think about it!

jgravois's avatar

Could I use a cron job running every five minutes with this

<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;

class CheckQueue extends Command
{
    protected $signature = 'queue:checkup';

    protected $description = 'Ensure that the queue listener is running.';

    public function __construct()
    {
        parent::__construct();
    }

    public function handle()
    {
        $this->call('queue:restart');
        $this->comment('Queue listener is running.');
    }
}
bobbybouwmann's avatar

That would be a good idea, but it's still wrong that you need to restart something while it should stay running by default.

For now that would be a good solution ;)

Please or to participate in this conversation.