-
Notifications
You must be signed in to change notification settings - Fork 4
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
ActiveRecord::ReadOnlyError: Write query attempted while in readonly mode: UPDATE #19
Comments
This is a great report. Thank you. I bet that |
in case you got "distracted" this is quite a nuisance - see rails/solid_cable#47 which to me seems like kind'a collateral damage had @npezza93 fix it - but I guess that band-aid really belongs somewhere else, right? |
hi Stephen - what's your position on this? Could the enhanced adapter help solve this with some SQL magic? Or will the Locker::Room have to be solved in a (different) gem? In my point of view we all dance around the concurrency issue without solving the root cause (which to me seems to be bad workflow design) - thoughts? |
been wanting to report on this one for a bit now - here goes:
I have a routine which I foresee will get hit quite a lot thus I push it into a background job. When I call it - I somewhat anticipated the subject error (whilst crossing my fingers for enhancedsqlite3 having my back); you could say fearing the worst, hoping the best:
This is what I see in my log
The method in question looks like this:
It is - in fact easily remedied by
- so my only issue with this is, I guess, I was hoping for enhanced to band-aid this 😉
The text was updated successfully, but these errors were encountered: