Search code examples
phplaravellaravel-queue

How can I access the list of items on the Queue in Laravel?


The Setup

I'm using Laravel 5.1 to build an application that processes a large number of media files. To handle the processing I've decided to use the built in queue services for some of the more labor intensive pieces of the process. I'm using the database driver.

The Need

I would like to create a dashboard so that non-technical administrators can know what processes are being run, and generally monitor the activity of the system. This means I would like to show them failed jobs, queued jobs, and in progress jobs.

Specifically I have the following questions:

  1. How do I get a list of pending items in the Laravel queue?
  2. How do I get a list of failed items in the Laravel queue?

Also I imagine I'm not the first to want a UI around the queue, so: anything already out there I'm missing?


Solution

  • For anyone interesting in this still, please use Laravel Horizon. https://laravel.com/docs/5.8/horizon