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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

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.

1 participant