Skip to content
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

Skip RecordAlreadyAdvisoryLockedError during mass-update action #1158

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

jmarsh24
Copy link
Contributor

When running mass update discard, there can be a condition where the good_job tries to destroy a record that is locked. I have added a rescue for this error condition, so good_job skips the discard on this job but doesn't raise an error.

@jmarsh24 jmarsh24 changed the title rescue error Rescue GoodJob::AdvisoryLockable::RecordAlreadyAdvisoryLockedError for jobs_controller.rb Nov 24, 2023
@bensheldon bensheldon changed the title Rescue GoodJob::AdvisoryLockable::RecordAlreadyAdvisoryLockedError for jobs_controller.rb Skip RecordAlreadyAdvisoryLockedError during mass-update action Nov 24, 2023
@bensheldon bensheldon added the bug Something isn't working label Nov 24, 2023
@bensheldon bensheldon merged commit 2251e0c into bensheldon:main Nov 24, 2023
20 checks passed
@bensheldon
Copy link
Owner

@bensheldon bensheldon mentioned this pull request Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging this pull request may close these issues.

2 participants