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

12506: discard jobs on ActiveJob::DeserializationError #972

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

cooperka
Copy link
Member

if, for example, a form (or other object) is created and then deleted before its associated background job can run, the background job will loudly fail with a server alert and possibly cause the DJ queue to backup until it's manually deleted.

instead, we should skip the job if its target no longer exists. tested and verified locally with a series of different fail cases.

the event is also logged to Sentry for analytics.

@cooperka
Copy link
Member Author

specs are flappers

@cooperka cooperka merged commit ac3e1c1 into main Dec 14, 2023
1 check failed
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