PHPackages                             dgarbs51/job-execution-recorder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. dgarbs51/job-execution-recorder

ActiveLibrary[Queues &amp; Workers](/categories/queues)

dgarbs51/job-execution-recorder
===============================

Laravel listener package for recording queue job execution metrics.

v0.0.4(2mo ago)0146↓86.9%MITPHPPHP ^8.2CI passing

Since May 12Pushed 2mo agoCompare

[ Source](https://github.com/DGarbs51/job-execution-recorder)[ Packagist](https://packagist.org/packages/dgarbs51/job-execution-recorder)[ RSS](/packages/dgarbs51-job-execution-recorder/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

Job Execution Recorder
======================

[](#job-execution-recorder)

Job Execution Recorder is a Laravel package that records queue execution lifecycle events (`processing`, `processed`, `failed`) into a `job_executions` table and provides a configurable dashboard.

Supported Versions
------------------

[](#supported-versions)

- Laravel `10.x`, `11.x`, `12.x`, and `13.x`
- PHP `8.2+`

What It Includes
----------------

[](#what-it-includes)

- Queue event listener registration via `JobExecutionRecorderServiceProvider`
- Execution listener implementation in `src/Listeners/RecordJobExecution.php`
- Migration for creating `job_executions`
- Configurable dashboard route + Blade view
- Configurable database connection for writes and dashboard reads

Installation
------------

[](#installation)

```
composer require dgarbs51/job-execution-recorder
php artisan vendor:publish --provider="DGarbs51\JobExecutionRecorder\JobExecutionRecorderServiceProvider"
php artisan migrate
```

Publish Options
---------------

[](#publish-options)

```
# Config
php artisan vendor:publish --tag=job-execution-recorder-config

# Views
php artisan vendor:publish --tag=job-execution-recorder-views
```

Configuration
-------------

[](#configuration)

Publish config to create `config/job-execution-recorder.php` and then tune values:

```
return [
    'database_connection' => env('JOB_EXECUTION_DB_CONNECTION', env('DB_CONNECTION')),
    'dashboard' => [
        'enabled' => env('JOB_EXECUTION_RECORDER_DASHBOARD_ENABLED', true),
        'path' => env('JOB_EXECUTION_RECORDER_DASHBOARD_PATH', 'jobs/execution/dashboard'),
        'name' => 'job-execution-recorder.dashboard',
        'view' => 'job-execution-recorder::dashboard',
        'middleware' => ['web', 'auth'],
        'gate' => 'viewJobExecutionDashboard',
        'allowed_emails' => [...],
    ],
];
```

### Environment Variables

[](#environment-variables)

- `JOB_EXECUTION_DB_CONNECTION`: DB connection for recorder writes + dashboard reads. Defaults to `DB_CONNECTION`.
- `JOB_EXECUTION_RECORDER_DASHBOARD_ENABLED`: enable/disable dashboard route registration.
- `JOB_EXECUTION_RECORDER_DASHBOARD_PATH`: route path (default `/jobs/execution/dashboard`).
- `JOB_EXECUTION_RECORDER_DASHBOARD_ALLOWED_EMAILS`: comma-separated email allowlist for non-local environments.
- `dashboard.view` can be changed in config to render a custom published view path.

Dashboard Access (Horizon-style)
--------------------------------

[](#dashboard-access-horizon-style)

- Route middleware defaults to `web` + `auth`.
- Route is additionally protected by the `can:viewJobExecutionDashboard` ability (configurable with `dashboard.gate`).
- In local environments, access is allowed by default.
- In non-local environments, access is allowed only when the authenticated user's email is in `dashboard.allowed_emails` (or via your custom gate definition).

You can override the gate in your app:

```
Gate::define('viewJobExecutionDashboard', function ($user) {
    return $user->isAdmin();
});
```

Dashboard Filters
-----------------

[](#dashboard-filters)

The dashboard supports:

- Time range filtering
- Exact `job_class_short` filtering
- Exact `message_group` filtering

Message group metrics are displayed only when at least one message-group row exists for the current filter context.

Migration / Index Notes
-----------------------

[](#migration--index-notes)

The package migration is designed to run on PostgreSQL, MySQL, and SQLite. It includes indexes aligned with dashboard access patterns:

- `started_at`
- `job_class_short, started_at`
- `queue, started_at`
- `status, started_at`
- `message_group, started_at`

Notes
-----

[](#notes)

This package currently expects application-level `JobExecution` model and `JobExecutionStatus` enum under the `App\` namespace. If you want this to be framework-agnostic, extract those into the package as a follow-up.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance86

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

73d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/58236685?v=4)[Devon Garbalosa](/maintainers/DGarbs51)[@DGarbs51](https://github.com/DGarbs51)

---

Top Contributors

[![DGarbs51](https://avatars.githubusercontent.com/u/58236685?v=4)](https://github.com/DGarbs51 "DGarbs51 (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dgarbs51-job-execution-recorder/health.svg)

```
[![Health](https://phpackages.com/badges/dgarbs51-job-execution-recorder/health.svg)](https://phpackages.com/packages/dgarbs51-job-execution-recorder)
```

###  Alternatives

[illuminate/queue

The Illuminate Queue package.

20432.6M1.7k](/packages/illuminate-queue)[illuminate/bus

The Illuminate Bus package.

6046.3M586](/packages/illuminate-bus)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

45955.7k](/packages/harris21-laravel-fuse)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
