-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow the configuration to change automatically at runtime
`#load_config` is now called whenever a worker completes a job, allowing a configuration loader to modify the config each time. Some configuration strategies (like the default config YAML file loader) may want to return the same value every time until explicitly asked to reload. It is the loader's responsibility to cache the value they return. They can implement a `#reset!` method, which will be called when the HUP signal is received. Modified the config file specs to demonstrate that repeated calls to `#load_config` are harmless and do not reload the configuration from disk.
- Loading branch information
1 parent
dcff985
commit 35e70e8
Showing
4 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters