Bug #4262
closed
mentat-enricher.py - When reloaded enrichment plugins should be able to retain their internal state
Added by Jan Mach over 6 years ago.
Updated about 6 years ago.
Category:
Development - Core
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).
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.
- 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.
Also available in: Atom
PDF