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
Not everything gets loaded in rails c #1728
Comments
This also seems to be a problem in Sidekiq. |
Maybe don't _auto_load the lib directory (lazily), but rather eager load it. |
The problem with eager loading |
So, now, this is related to #1597. |
This split should be not too difficult? |
I think this is the same problem we're having. The multiple threads are loading the same files at the same time, which is not thread-safe up until Rails 4.2.
|
Logged into the
rails c production
on ontohub.org, when I executeI get errors that indicate incomplete application loading. It randomly doesn't find classes in the top namespace, like
Semaphore
,AccessTokenDeletionWorker
orTimeoutWorker
(raisingNameError
s withNameError: uninitialized constant ...
). As far as I remember, they all reside in thelib
directory. I'm not 100% sure of it, though.The text was updated successfully, but these errors were encountered: