Implicit shutdown of Executor Service

Hi All
In one of our Bitbucket plugins I use Executor Service to start worker threads. I decided to get instance through Dependency Injection. (As implementation provided by Bitbucket has better logging support, … etc). But I’m wondering if I should do shutdown for this instance when plugin is stopped/disabled.



You should not shut down the ExecutorService that is provided by the host application when your plugin is disabled/uninstalled/shut down since it’s being used by multiple plugins. The shared ExecutorService should only be shut down on application shutdown and Bitbucket will take care of it.


this is what I thought. Thanks for confirming