Bug #4262
closedmentat-enricher.py - When reloaded enrichment plugins should be able to retain their internal state
100%
Description
Currently all enrichment plugins are hard reloaded and their internal state is lost. This behavior was sufficient for all currently implemented plugins, however in some use cases this approach results in data and performance loss (for example in case of enrichment plugins which use internal caching mechanism).
Updated by Pavel Kácha over 6 years ago
Wouldn't make more sense to not restart the whole daemon, but to give enricher plugins means to reload their data themselves? As far as I understand, design is event based, so plugins could schedule their own (and only their own) data reload as they see fit.
Updated by Jan Mach about 6 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Resolved this issue by not discarding the whole plugin instances during reload. Instead the plugin`s setup() method is called on each of the plugins. So it is up to the plugin to decide whether it is time to reload internal state.