-
Notifications
You must be signed in to change notification settings - Fork 11k
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
[11.x] Fix integrity constraint violation on failed_jobs_uuid_unique #53264
Conversation
Thanks for submitting a PR! Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface. Pull requests that are abandoned in draft may be closed due to inactivity. |
I wonder if this would be more easily solved with just a static variable in the |
That's what I did first! I'm happy to have another look at that. |
This reverts commit ff22f3a.
This reverts commit 2086b6c.
…_unique (laravel#53230)" This reverts commit 51a0eba
Fixes #53230
Listeners are bound each time
Artisan::call('queue:work')
is called. That results in:DatabaseUuidFailedJobProvider
is used, then an integrity constraint violation is thrown due to multiple calls tologFailedJob()
.Static var prevents listeners being bound multiple times within application life cycle.