I can start the queue as such:
php artisan queue:listen
This works fine, but I would like to monitor if the queue is running, especially important as there doesn't seem to a fallback if it's not.
To be clear, if I queue an email through a controller, like so:
$this->mailer->queue($view, $data, function ($message) use ($toEmail, $toName, $subject) {
$message
->to($toEmail, $toName)
->subject($subject);
});
This will successfully run, but if the queue is not 'listening', the job gets pushed on to the job table, forever.
I am looking for something like \Queue::isListening();
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire