Hi Guys!
I have problem in my Jira Data Center plugin which implements dynamic scheduled Job. Implementation is very similar to this example:
The problem occurs on multiple nodes environment. After shut down one of nodes all scheduled job and job runner is missing from others nodes (which are still on). I have done some reserch and have conclustions that it might be becouse of deconstructing plugin on turning off node using DisposableBean → destroy() function.
Destroy() function is called before stop of the plugin thus is the good place to unschedule all jobs. However it seems that turning off one node runs this method for particular node, what unschedule all jobs and unregister Job Runner form all Cluster.
For the moment i’m not sure if i’m mising something or it’s correct behaviour and i have to implement it in some other way?
If so, i wolud like to implement some way to catch of stop/uninstall of my plugin to unschedule and deregister Job Runner correctly.
Cheers,
Jacek