8000 [13.x] Use exception object in JobAttempted event by bert-w · Pull Request #56148 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[13.x] Use exception object in JobAttempted event #56148

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

Merged

Conversation

bert-w
Copy link
Contributor
@bert-w bert-w commented Jun 26, 2025

The /Illuminate/Queue/Events/JobAttempted event is very useful to track job completions/failures, however in its current form it only passes down an exception that occurred as a bool.

This PR changes this to pass down the complete Throwable $e so we have more data to work with in the event itself.

Since this is a breaking change I targeted 13.x. Existing userland code that listens to this event might need to be updated.

@taylorotwell taylorotwell marked this pull request as draft July 2, 2025 22:59
@taylorotwell taylorotwell marked this pull request as ready for review July 2, 2025 23:00
@taylorotwell taylorotwell merged commit 7185379 into laravel:master Jul 2, 2025
21 of 54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0