-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Revert "Revert "Use create_or_find_by
to reduce activity status deadlocks""
#4671
Conversation
I would put this on hold until after the exams. |
For future reference:
|
i have been investigating this more, some conclusions: A potential 'solution' to accept that the connection might fail sometimes, but force an immediate reconnect. |
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 don't like this fix. It is a deprecated workaround of a workaround.
In the original code, we do a single retry before raising an error. What if we try more?
Reverts #4670
This reintroduces all changes made in #4547 and thus closes #4479
The only change compared to the original pr is that I added
reconnect: true
to the production DB settings.I hope that because a roll backed query broke the connection, just reconnecting and continuing should result in an error free flow. (But we'll have to test it to know for sure)