Why a job scheduled by plugin schedular is getting triggered when plugin installed or server restarted?

siva September 4, 2012

Hi ,

I wrote a job to be triggered daily at 2 AM .While scheduling job I have the start time as next day 2 AM. But the job is triggered twice when plugin is installed or server restarted.I dont want that job to be triggered at either server startup or plugin installation..how to do that ?.. can any one help out of this?

1 answer

0 votes
Thomas Heidenreich
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.
April 3, 2014

I think you have to overwrite the onStart() method in the class extending LifecycleAware and let it do nothing.

See also: https://developer.atlassian.com/display/JIRADEV/JIRA+Plugin+Lifecycle#JIRAPluginLifecycle-Howdifferentscenariostriggerdifferentstagesinthelifecycle

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events