Skip to content

v3.0.0

Compare
Choose a tag to compare
@romanzipp romanzipp released this 28 Mar 17:45
· 92 commits to master since this release

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.

- Route::queueMonitor();

UI

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

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

Update references

failed column removed

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

time_elapsed column removed

- $monitor->time_elapsed
+ $monitor->getElapsedSeconds()  // returns floats
+ $monitor->getElapsedInterval() // returns \Carbon\CarbonInterval