Download Latest Version v5.0.0 source code.zip (509.1 kB)
Email in envelope

Get an email when there's a new version of Laravel Queue Monitor

Home / 3.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2023-03-28 1.8 kB
v3.0.0 source code.tar.gz 2023-03-28 472.8 kB
v3.0.0 source code.zip 2023-03-28 501.3 kB
Totals: 3 Items   975.8 kB 0

Changes

  • Add status column
  • Add queue-monitor:stale command to mark jobs as stale
  • Add queue-monitor:purge command to delete old monitor entires
  • Update route registration
  • Add stale job detection
  • Rework UI (+ darkmode)

Upgrading to 3.0 from 2.0

Minimum version

The minimum PHP version is 8.0.

Database

Version 3.0 adds a new status column to the queue monitor table which replaces the previous failed column. The migration also keeps the failed state before removing the old column.

Publish & execute upgrade migration:

php artisan vendor:publish --provider="romanzipp\QueueMonitor\Providers\QueueMonitorProvider" --tag=migrations-upgrade
php artisan migrate

Routes

The routes are not registered by a mixin anymore. There is a new ui.route configuration entry which sets the prefix and middlewares for your new routes.

:::diff
- Route::queueMonitor();

UI

Version 3.0 now contains a compiled CSS asset for the UI. Publish the frontend assets with the following command:

:::sh
php artisan vendor:publish --provider="romanzipp\QueueMonitor\Providers\QueueMonitorProvider" --tag=assets

Update references

failed column removed

:::diff
- $monitor->failed
+ $monitor->status === \romanzipp\QueueMonitor\Enums\MonitorStatus::FAILED

time_elapsed column removed

:::diff
- $monitor->time_elapsed
+ $monitor->getElapsedSeconds()  // returns floats
+ $monitor->getElapsedInterval() // returns \Carbon\CarbonInterval
Source: README.md, updated 2023-03-28