-
Notifications
You must be signed in to change notification settings - Fork 254
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
Parallel compatible with SQLite? #127
Comments
only thing that worked for me in mysql land was |
Happens with me too. I'm using Parallel to run RSpec tests in openSUSE/osem but get the following errors
It seems as if SQLite is unable to handle multiple sessions. Is it an issue with Parallel or SQLite? |
sqllite I'd say ... can try to lock the queries or something like that ... might just not be possible to do parallel queries ... can try with a simple script that you run twice and see if you can reproduce |
I use Parallel extensively, but ran into an issue in a new project where any code within the Parallel block has no access what-so-ever to ActiveRecord when using SQLite.
I tried the three ActiveRecord workarounds on the README, and they didn't help. It does work in MySQL (dev env), but I use SQLite for testing.
Here's my method with Parallel:
Within the
import_sheet
method, all ActiveRecord queries return no records. It's really strange. Even doingin_processes: 1
doesn't work.I'm working in Rails 4.1.5 and Ruby 2.1.5.
The text was updated successfully, but these errors were encountered: