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

Reloading hook modules in arbiter.reload_from_config function #871

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maximilize
Copy link
Contributor

Hooks were only reloaded when the full circus daemon were restarted. Now all hooks are reloaded when for eg. reloadconfig is called.

I think I implemented it a little bit dirty. As you can see in watcher.py:393 I'm rebuilding the hook string and call _resolve_hook again, but I think this should work in the most cases.
The much better way would be to store the original hook string in an extra dict next to self.hooks or get the strings from the config.

@Natim
Copy link
Contributor

Natim commented Jan 25, 2015

Can you add a test for it and fix failing ones?

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