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(): floatNew Methods
+ $monitor->hasFailed()