From 6846450d0d05496db3d50efdf5f61dda8bc1b874 Mon Sep 17 00:00:00 2001 From: Marick van Tuil Date: Mon, 26 Aug 2024 21:57:22 +0200 Subject: [PATCH] Fix exceptions in jobs not reported to exception handler --- src/TaskHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TaskHandler.php b/src/TaskHandler.php index b47f61d..2e31145 100644 --- a/src/TaskHandler.php +++ b/src/TaskHandler.php @@ -41,7 +41,7 @@ public function handle(?string $task = null): void // is returned. Because we manually manage retries by releaseing jobs, // we never want to return a 5xx status as that will result in duplicate // job attempts. - rescue(fn () => $this->run($task), report: false); + rescue(fn () => $this->run($task)); } private function run(IncomingTask $task): void