A Laravel package to monitor queue jobs.

2.0.2 2019-12-20 00:42 UTC

This package is auto-updated.

Last update: 2023-03-20 07:27:42 UTC


Latest Stable Version Total Downloads Latest Unstable Version License

Laravel Queue Monitor

A Laravel package to monitor queue jobs. Logs certain information about queue jobs in a database table:

  • The elapsed time of the job including start and finish timestamps
  • If --tries is being used the attempt number for each job
  • If the job failed and the exception given (if available)
  • Custom data (optional)


  • Laravel 5.5+

This is a fork of gilbitron/laravel-queue-monitor I had some specific project requirements, but but no time to generate separate PRs for each change I've made to the original project, and no guarantee they would be accepted. So chose your branch according to your requirements :-)


Install the composer package:

composer require academe/laravel-queue-monitor

Add the service provider in config/app.php (this step is not necessary for Laravel 5.5+):

 * Package Service Providers...

Run a migration to setup the queue_monitor database table:

php artisan migrate


All queue jobs will now be monitored and results stored to the queue_monitor database table. No other configuration is required.

Custom Data

To save custom data with the queue monitor results you need to include the QueueMonitorData trait in your Job and use the saveQueueMonitorData() method. For example:


namespace App\Jobs;

use Academe\LaravelQueueMonitor\Jobs\QueueMonitorData;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;

class ExampleJob implements ShouldQueue
    use InteractsWithQueue, Queueable, SerializesModels, QueueMonitorData;

    protected $results = 0;

     * Create a new job instance.
     * @return void
    public function __construct()

     * Execute the job.
     * @return void
    public function handle()
        $this->results = rand(1, 100);

            'results' => $this->results,

        // ...


Laravel Queue Monitor was created by Gilbert Pellegrom from Dev7studios. Released under the MIT license.