Skip to content

Reloading hook modules in arbiter.reload_from_config function#871

Open
maximilize wants to merge 1 commit into
circus-tent:masterfrom
maximilize:reloadconfig_hooks
Open

Reloading hook modules in arbiter.reload_from_config function#871
maximilize wants to merge 1 commit into
circus-tent:masterfrom
maximilize:reloadconfig_hooks

Conversation

@maximilize

Copy link
Copy Markdown
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

Natim commented Jan 25, 2015

Copy link
Copy Markdown
Contributor

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