How to automatically restart TagProvider after upgrade


I’m implementing a TagProvider through the extension system. The TagProvider is instantiated and startup() is called when:

  • The Realtime SQLTagProvider is created
  • The configuration is edited and saved.

The issue I’m having is, when I upgrade/restart the module, setup and startup are called on the GatewayModuleHook, but the old instance of the TagProvider is never shutdown() and re-instantiated/startup() with the new module. I have to manually do this.

Is there any way to force the SQLTagsManager to restart a running TagProvider when the module is updated?