Skip to content

Live Configuration Update

Go Hagiwara edited this page Nov 4, 2019 · 5 revisions

When a configuration for a command or scheduled task is updated, go-sarah automatically detects the event and re-builds the command or scheduled task in a thread-safe manner so the next execution of that command/task appropriately reflects the new configuration values.

To activate this feature, sarah.ConfigWatcher implementation must be set via sarah.RegisterConfigWatcher(). A default implementation of sarah.ConfigWatcher that subscribes to the file system and another reference implementation that subscribes to github's particular repository is available.

Clone this wiki locally