github romanzipp/Laravel-Queue-Monitor 2.0.0
v2.0.0

latest releases: 5.4.3, 5.4.2, 5.4.1...
5 years ago

Upgrading to 2.0 from 1.0

Database

Add the following fields to your queue monitor table:

  • exception_message (string, nullable)
  • exception_class (long text, nullable)

The Job Trait

The job trait has been renamed to a more intuitive name.

- use romanzipp\QueueMonitor\Traits\QueueMonitor;
+ use romanzipp\QueueMonitor\Traits\IsMonitored; 

The Monitor Model

Changed Methods

- $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

New Methods

+ $monitor->hasFailed()

Don't miss a new Laravel-Queue-Monitor release

NewReleases is sending notifications on new releases.