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

Add option to never reload configuration when configuration loader is lazy #657

Merged
merged 4 commits into from
Apr 23, 2018

Conversation

davidor
Copy link
Contributor

@davidor davidor commented Mar 16, 2018

It's not possible to use APICAST_CONFIGURATION_LOADER=lazy and never refresh the configuration. This PR solves the issue by allowing setting negatives values in APICAST_CONFIGURATION_CACHE.

@davidor davidor force-pushed the add-option-to-never-reload-lazy-mode branch from 56e275b to 51568fa Compare March 16, 2018 15:20

store:add(service, -1)
-- Can't add stale info with config.add. Need to do it through the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could add one with expiry 0 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tried it and it does not work. I guess it needs a bit of time to delete it even with ttl=0.

@mikz mikz merged commit 449473c into master Apr 23, 2018
@mikz mikz deleted the add-option-to-never-reload-lazy-mode branch April 23, 2018 10:49
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