-
Notifications
You must be signed in to change notification settings - Fork 665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If a job fails because it "has been attempted too many times", the original error never gets reported #1514
Comments
Thank you for reporting this issue! As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub. If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team. Thank you! |
Feel free to send a PR if you want this feature. |
Having the same issue since upgrading to Laravel 11. I suspect Horizon is having a bug at killing gracefully the process that has to be terminated |
It's a bug not a feature. |
I'd like to second this, it's quite a big issue. The jobs I've had fail where the only visible exception is that the job was tried to many times are painful to debug and track down. The reason I'd say this is a bug and not a feature is that reporting that the job failed because it was tried too many times is simply not reporting the reason the job failed. The exception is visible and right there, but not reported. |
Feel free to submit a PR to fix the issue. Bug or feature this is an open source project where the community can contribute. |
I looked into it before posting my comment. It's far outside of my abilities at the moment. Too many areas I've wholly unfamiliar with. If it's not a priority for the team then maybe I'll get there at some point and then I'd be happy to contribute. |
Horizon Version
5.29.0
Laravel Version
11.10.0
PHP Version
8.2
Redis Driver
PhpRedis
Redis Version
7.2.4
Database Driver & Version
No response
Description
In our logs, we are noticing that a job is failing. It says this job "has been attempted too many times". But the stack trace in the log only shows the stack trace for
/vendor/laravel/framework/src/Illuminate/Queue/MaxAttemptsExceededException.php:24
, not the original error. I want to know the real reason the job is failing, and the stack trace and exception of the original error.Steps To Reproduce
This is our horizon.php config file.
The text was updated successfully, but these errors were encountered: