Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Uninstalling Jira Plugin is unable to stop Plugin scheduled task

dishant sikka
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 17, 2019

Hi,

I have created a Atlassian Jira Plugin, which schedules a task at fixed rate using Java Timer/TimerTask.

Plugin is able to start or stop the task in a controlled manner.

There is a scenario :

  • If the Plugin starts a task.
  • Do not stop it in a controlled manner.
  • Uninstall or Disable the plugin.

In this scenario, the task is still running in the background.

I have to shut down SDK to stop this task.

It looks like, SDK is caching java files and have not killed the Java Process.

Please suggest, if there is any recommended method to clear this type of Java Process or stop this task, while uninstalling the Plugin.

Please note that SDK is installed locally, so I am running this on localhost.

Regards

1 answer

1 accepted

0 votes
Answer accepted
Aleksandr Zuevich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 17, 2019

Hi,

Usually the destroy method is implemented from DisposableBean to unschedule the job.

dishant sikka
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 19, 2019

Thanks a lot Aleksandr, it worked for me.

Suggest an answer

Log in or Sign up to answer