parallel: Problem of uninitialized constant
Hello,
Thank you for this gem.
But I have an issue in my Rails App. My app is hosted by Heroku. Sometimes in my delayed job worker, I have a “NameError: uninitialized constant”.
The Stack Trace:
3
File "/app/vendor/bundle/ruby/2.1.0/gems/parallel-1.6.1/lib/parallel.rb" line 408 in call
4
File "/app/vendor/bundle/ruby/2.1.0/gems/parallel-1.6.1/lib/parallel.rb" line 408 in call_with_index
5
File "/app/vendor/bundle/ruby/2.1.0/gems/parallel-1.6.1/lib/parallel.rb" line 288 in block (2 levels) in work_in_threads
6
File "/app/vendor/bundle/ruby/2.1.0/gems/parallel-1.6.1/lib/parallel.rb" line 419 in with_instrumentation
7
File "/app/vendor/bundle/ruby/2.1.0/gems/parallel-1.6.1/lib/parallel.rb" line 287 in block in work_in_threads
8
File "/app/vendor/bundle/ruby/2.1.0/gems/parallel-1.6.1/lib/parallel.rb" line 183 in block (2 levels) in in_threads
Do you have any idea, what’s going on ? And how to fix it ?
Thanks for your response.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 1
- Comments: 15 (8 by maintainers)
Commits related to this issue
- docs: Improve notes about ActiveRecord Fixes: https://github.com/grosser/parallel/issues/150 Signed-off-by: Kai Krakow <kai@kaishome.de> — committed to kakra/parallel by kakra 5 years ago
- docs: Improve notes about ActiveRecord Fixes: https://github.com/grosser/parallel/issues/150 Signed-off-by: Kai Krakow <kai@kaishome.de> — committed to kakra/parallel by kakra 5 years ago
- docs: Improve notes about ActiveRecord Fixes: https://github.com/grosser/parallel/issues/150 Signed-off-by: Kai Krakow <kai@kaishome.de> — committed to kakra/parallel by kakra 5 years ago
- docs: Improve notes about ActiveRecord Fixes: https://github.com/grosser/parallel/issues/150 Signed-off-by: Kai Krakow <kai@kaishome.de> — committed to jamieblynn/parallel by jamieblynn 5 years ago
That might be a require vs threading issue … does it happen if you make sure the class is loaded before entering the parallel block ?
On Tue, Oct 27, 2015 at 7:35 AM, MaximeRDY notifications@github.com wrote: