Monitoring Laravel Jobs with your Database
MIT License
Bot releases are hidden (Show)
Version 4.0 added the ability to retry jobs. For this two new columns job_uuid
and retried
are introduced.
Version 5.0 adds the ability to also monitor queued jobs which requires a new column queued_at
php artisan vendor:publish --provider="romanzipp\QueueMonitor\Providers\QueueMonitorProvider" --tag=migrations
php artisan migrate
A new config option monitor_queued_jobs
is introduced. Dispatched jobs will be automatically monitored. If you wish to disable this feature, make sure to change this config value.
Published by romanzipp about 1 year ago
Version 4.0 added the ability to retry jobs. For this two new columns job_uuid
and retried
are introduced.
Version 5.0 adds the ability to also monitor queued jobs which requires a new column queued_at
php artisan vendor:publish --provider="romanzipp\QueueMonitor\Providers\QueueMonitorProvider" --tag=migrations
php artisan migrate
A new config option monitor_queued_jobs
is introduced. Dispatched jobs will be automatically monitored. If you wish to disable this feature, make sure to change this config value.
Published by romanzipp over 1 year ago
Version 3.0 introduced many database related changes. Make sure to follow this upgrade guide before if you come from version 2.
Version 4.0 adds the ability to retry jobs. For this two new columns job_uuid
and retried
are introduced.
php artisan vendor:publish --provider="romanzipp\QueueMonitor\Providers\QueueMonitorProvider" --tag=migrations
php artisan migrate
Published by romanzipp over 1 year ago
queue-monitor:stale
command to mark jobs as stalequeue-monitor:purge
command to delete old monitor entiresThe minimum PHP version is 8.0.
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
php artisan migrate
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();
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
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
Published by romanzipp over 4 years ago
Add the following fields to your queue monitor table:
exception_message
(string, nullable)exception_class
(long text, nullable)The job trait has been renamed to a more intuitive name.
- use romanzipp\QueueMonitor\Traits\QueueMonitor;
+ use romanzipp\QueueMonitor\Traits\IsMonitored;
- $monitor->basename()
- $monitor->basename
+ $monitor->getBasename()
- $monitor->parsed_data
+ $monitor->getData()
- $monitor->remaing_seconds
+ $monitor->getRemainingSeconds()
- $monitor->startedAtExact()
+ $monitor->getStartedAtExact()
- $monitor->finishedAtExact()
+ $monitor->getFinishedAtExact()
- $monitor->isSucceeded()
+ $monitor->hasSucceeded()
The getRemainingSeconds()
method now always returns a float
instead of float|null
,
- public function getRemainingSeconds(): ?float
+ public function getRemainingSeconds(): float
+ $monitor->hasFailed()
Published by romanzipp over 4 years ago
Laravel 7 support
Published by romanzipp about 6 years ago
Published by romanzipp about 6 years ago
Published by romanzipp about 6 years ago
Published by romanzipp about 6 years ago
Published by romanzipp about 6 years ago
Enhance monitor ordered scope
Published by romanzipp about 6 years ago
Published by romanzipp about 6 years ago
Published by romanzipp over 6 years ago
Published by romanzipp over 6 years ago
Published by romanzipp over 6 years ago
Published by romanzipp over 6 years ago
Published by romanzipp over 6 years ago