Skip to content

Commit

Permalink
set 0 as the default runtime of the job (#1307)
Browse files Browse the repository at this point in the history
  • Loading branch information
AsemAlalami authored Aug 29, 2023
1 parent 0a587c9 commit 16f2c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listeners/UpdateJobMetrics.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16f2c0e

Please sign in to comment.