diff --git a/src/Listeners/UpdateJobMetrics.php b/src/Listeners/UpdateJobMetrics.php index 7b8b12f6..43e87f69 100644 --- a/src/Listeners/UpdateJobMetrics.php +++ b/src/Listeners/UpdateJobMetrics.php @@ -47,7 +47,7 @@ public function handle(JobDeleted $event) return; } - $time = $this->watch->check($id = $event->payload->id()); + $time = $this->watch->check($id = $event->payload->id()) ?: 0; $this->metrics->incrementQueue( $event->job->getQueue(), $time