Skip to content
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

Rails 5 eager_load & auto_load issues #78

Open
mejackreed opened this issue Jun 28, 2017 · 0 comments
Open

Rails 5 eager_load & auto_load issues #78

mejackreed opened this issue Jun 28, 2017 · 0 comments

Comments

@mejackreed
Copy link
Contributor

Some of these were alleviated in #75, but when consuming riiif in a Rails 5 application, sometimes a hang will occur when accessing riiif images. This is happening in our use case in the following scenario:

  • A Rails application kicks off a job
  • This job shells out to something that makes 1..n riiif requests

This problem is also present when an orchestration job kicks off multiple jobs that call riiif images.

A quick fix in a consuming Rails application is to set :

config.enable_dependency_loading = true

Contributed by: https://collectiveidea.com/blog/archives/2016/07/22/solutions-to-potential-upgrade-problems-in-rails-5

Though that solution doesn't feel to be like a long term "good" solution.

The "long term solution" proposed by that same article "move all code into app/lib" also doesn't appear to resolve the problem in my experiments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant