Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is there a way to monitor scheduled jobs?

Ron Coulter March 18, 2020

We have an on-premises installation of ServiceDesk that requires the ability to process incoming emails. Over the last few months, the following Scheduler Administration jobs have intermittently stopped running:

  • com.atlassian.jira.internal.mail.services.MailProcessorJobRunner
  • com.atlassian.jira.internal.mail.services.MailPullerJobRunner

This causes comments sent via email not to be added and other problems. The only solution is to restart the application. We have a support ticket open with Atlassian to resolve the problem, but in the meantime, does anyone know a way to monitor those services and trigger a notification when they fail? Recommendations for add-ons or Groovy scripts welcome. (We have Scriptrunner, Extension for JSD, and JSU Automation Suite available)

Thanks,

Ron

1 answer

0 votes
Fgon87 July 2, 2021

Hello Ron,

Did you find any way to monitor scheduled jobs?. We are having the same issue and we would like to get some kind of notification at least, so we will know when the processor has stuck.

 

Best regards,

Francisco González

Ron Coulter July 2, 2021

Hi @Fgon87 no we never came up with anything. The problem still occurs intermittently. The only pattern we've seen is the problem is more likely to occur at times when the database is offline for maintenance. But it doesn't always happen when the database is offline and sometimes it happens when the database is online. How about you?

Fgon87 July 2, 2021

Hello @Ron Coulter

Our situation its different. The problem is that MailProcessorJobRunner gets stuck when trying to process some emails. These emails have lots of "Chunks" and the only solution is to go through the database and change the status of those emails to "FILTERED" so Jira ignores them and then restart Jira to restart processing.

In your cases it looks like it is enough by restarting Jira.

In both case what we need it is some notification to avoid been checking the processor every day/hour. Of course if it possible with script runner it could be so much better for us. We also have several plugins running because this is a big instance.

@Ron Coulter If you find out about any kind of notification please let us know. It would help us a lot,

Thanks,

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
3.14.1
TAGS
AUG Leaders

Atlassian Community Events