Re: Executor shutdown hook and initialization

2016-10-27 Thread Walter rakoff
e them with the lifecycle of a > computation on a partition instead. > > On Wed, Oct 26, 2016 at 9:27 PM Walter rakoff <walter.rak...@gmail.com> > wrote: > >> Hello, >> >> Is there a way I can add an init() call when an executor is created? I'd >> like to initialize

Executor shutdown hook and initialization

2016-10-26 Thread Walter rakoff
Hello, Is there a way I can add an init() call when an executor is created? I'd like to initialize a few connections that are part of my singleton object. Preferably this happens before it runs the first task On the same line, how can I provide an shutdown hook that cleans up these connections on