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

fix shutdown behaviour of remote config fetcher #91

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

piax93
Copy link
Collaborator

@piax93 piax93 commented Jan 26, 2024

Configuration fetching is working fine, but on self-restart the background thread would not be terminating fast enough by itself (understandably, considering it has a 1h wait timeout) so when the class would get loaded again it would come with some "virtually dead" thread, preventing to load the new config again.

I also switched the include_remote to be a class method, as I was definitely abusing the "class properties are also instance properties" aspect of python. It's a bit cleaner this way.

@piax93 piax93 merged commit eb9b7fc into master Jan 26, 2024
3 checks passed
@piax93 piax93 deleted the u/mpiano/IDR-58_tiny_fix branch January 26, 2024 11:26
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