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.
Is there a command that can be run to determine if the Queue is running?
How do others using Pusher deal with Premature Queue Death?
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.
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
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.');
}
}