-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Changed retries and rescued in ActivityPub::ProcessingWorker #14355
Changed retries and rescued in ActivityPub::ProcessingWorker #14355
Conversation
noellabo
commented
Jul 19, 2020
- Reduce the number of retries, as repeated retries are not effective.
- Give up RecordNotUnique immediately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine but would like opinion from @ThibG as well
Hmm… where would |
The cause of ActiveRecord::RecordNotUnique has not been identified. May be due to configuration. I'll investigate more closely. On the other hand, this error report is useful to the developer, but I'm not sure if it helps the server administrator, because the server administrator can't handle it. P.S. |
Well, having the error visible to administrators would enable them reporting it to us. I'd be more confident with this patch if we knew what caused that error, even though it's unlikely to be a big deal. |
Sidekiq may process jobs before data has replicated in postgresql, leading to some jobs being discarded (because we often catch and discard record not found errors). One of the reasons why my Sidekiq is connected directly to master... i wonder if you experience the same issue? |
I am monitoring for dead jobs where RecordNotUnique occurs.
My server has 3 relays connected and the same Object is often reached 4 times in Create or Announce.
The cause of RecordNotUnique has been resolved, so I will leave it so that I notice the abnormality when it occurs again. |
Hmm, not sure what to do about the Misskey reactions… maybe just… drop them, since they don't really mean the same thing as a |
…n#14355) * Changed the number of retries and rescued exceptions in ActivityPub::ProcessingWorker * Remove RecordNotUnique from rescue