-
-
Notifications
You must be signed in to change notification settings - Fork 486
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
Ignore ActiveJob::DeserializationError by default #701
Comments
Hmm, we do not ignore |
@mrhead What do you have I opened this issue after realizing 99% of the ActiveJob::DeserializationErrors that I see are just from records being deleted between the job being enqueued and the job executing. They're just noise. |
To this:
ActiveJob::DeserializationErrors happen also when you schedule a job from a DB transaction and the job is executed before the transaction is committed. While, this is usually harmless because Sidekiq just restarts the job and then it finish successfully, it can be an issue if for whatever reason you set number of retries to 0. On the other hand I agree that this is just a noise and probably nothing bad happens if these errors get ignored. |
I've just received an |
See #642. Activejob deserialization errors are pretty common, usually raised when we deleted the record we were going to process in a background job:
However, if you have an async config that looks like:
and
repo
isn't found, you'll raise ActiveJob::DeserializationError and blow up your Sidekiq instance as we run into an infinite loop.Since ActiveJob::DeserializationError is basically a NotFound error, we should ignore it by default, just like all the other NotFound errors we ignore by default.
The text was updated successfully, but these errors were encountered: