Forums

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

Custom scheduled job not running

Fredrik Ivansson Flinta
Contributor
June 9, 2021

Hi,

 

I have a custom scheduled job created in Scriptrunner that executes every 15 minutes.

The problem is that sometimes is stops without any reason and will not run even if the scheduler reports that is running.

 

It doesn't help to re-create the job, the only thing so far we discovered is to restart Jira.

 

Jira internal scheduler administration reports: 

Run modeonce per cluster

Schedule15 */15 * * * ?

Last run

Last run duration

Next runWed Jun 09 11:00:00 CEST 2021

Message

 

The thing is that it never run at 11:00:00 and no message either. 

 

Is there a way to find the scheduled job/process/etc in order to figure out whats happened with it?!.. or somethings else.

 

Thanks!

1 answer

0 votes
Brant Schroeder
Community Champion
June 14, 2021

@Fredrik Ivansson Flinta 

Are you seeing any other degradation of service?  Have you checked logs to see if there are any hints there that might help?  Are threads getting stuck or are you running out of memory?  Is the job completing before the next one runs?

Fredrik Ivansson Flinta
Contributor
June 17, 2021

@Brant Schroeder 

No degradation besides that the scheduled job stops and never executes again, it works again after reboot.

None out of memory or no hints in the logs. 

Yes, the job is completed, and that can easily be verified to the log output from the script.

Might have found a Bug that are similar to the fault that we are experiencing: JRASERVER-62072

 

We now have a workaround for this in order to bypass Jira internal scheduler.

Created a REST endpoint and schedule the job outside Jira instead.

Suggest an answer

Log in or Sign up to answer