From 16f2c0e00e5b0b9a3f85e95f6022b6dc0476993d Mon Sep 17 00:00:00 2001 From: Asem Alalami Date: Tue, 29 Aug 2023 16:37:54 +0300 Subject: [PATCH] set 0 as the default runtime of the job (#1307) --- src/Listeners/UpdateJobMetrics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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