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

Augment use of initializers #163

Open
techgique opened this issue Nov 22, 2016 · 2 comments
Open

Augment use of initializers #163

techgique opened this issue Nov 22, 2016 · 2 comments

Comments

@techgique
Copy link
Member

Interested in adding a periodic refresh of variables set by initializers in case data changes and we forget to restart the web app. Just one more way to make updating data mistake-proof.

Ideally would try to do something where anytime we run a script to post to Solr/ES, it sets an environment variable or some other trigger that causes the web app to reload data from its initializers or restarts the web app. Then we're not wasting cycles with unnecessary periodic checks either.

@techgique techgique added this to the 02 Do if we have time milestone Nov 22, 2016
@jduss4
Copy link
Contributor

jduss4 commented Nov 29, 2016

This would only work out if we were posting from the same server, and right now I think we've been posting from Rosie. I like this idea, though. Maybe it should just periodically re-initialize every several days as a halfway measure?

@jduss4
Copy link
Contributor

jduss4 commented Nov 29, 2016

I just had another thought, which is that we should probably document the custom initializer code somewhere to help people with troubleshooting if suddenly the app crashes and won't restart, etc.

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

No branches or pull requests

2 participants