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

Simplify route reloader and ensure threadsafe #31

Closed

Conversation

Firefishy
Copy link
Contributor

Heavily inspired by: https://stackoverflow.com/questions/48506247/rails-reload-dynamic-routes-on-multiple-instances-servers

Avoid using Application State and use Rails.cache for Route reload state.

Fix: #30

Heavily inspired by: https://stackoverflow.com/questions/48506247/rails-reload-dynamic-routes-on-multiple-instances-servers

Avoid using Application State and use Rails.cache for Route reload state.
@Firefishy
Copy link
Contributor Author

CC: @alkesh would you mind reviewing? I am a rails newbie.

@iridakos
Copy link
Owner

@Firefishy I can help with this when I find some time if you haven't pushed a fix.

@Firefishy
Copy link
Contributor Author

I'll likely need some help fixing the broken tests. I might get some help from my colleague @alkesh today.

@Firefishy
Copy link
Contributor Author

Fail :-( I am out of my depth. Beyond the broken tests, my changes do not work for workers. Likely needs some fixes to Rack middleware and this is beyond my ability.

@iridakos
Copy link
Owner

No worries. Feel free to close this PR. I will open an issue (or you if you prefer) to note what you noticed about thread safety for future investigation.

Thank you very much for your work on this!

@Firefishy Firefishy closed this Mar 14, 2018
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

Successfully merging this pull request may close these issues.

2 participants