Skip to content

Commit

Permalink
Merge pull request #154 from stackkit/bugfix/report-errors
Browse files Browse the repository at this point in the history
Fix exceptions in jobs not reported to exception handler
  • Loading branch information
marickvantuil authored Aug 26, 2024
2 parents 81bf6e5 + 6846450 commit d0aeecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TaskHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0aeecd

Please sign in to comment.