Scheduled Task configured by job-config module not appearing and running in confluence Edited

I've added a job-config module to my atlassian-plugin and added the necessary classes and registred the spring-bean. But the job does not appear in the confluence-recurring task console and the debugger never hits the execution of the scheduled-task.

I've added the following to the plugin-descriptor:

 <job-config name="Dashboard Aggregation" key="aggregator-job">
<job key="aggregationRunner" perClusterJob="true" clusteredOnly="true" />
<schedule repeat-interval="10000" />
<managed editable="true" keepingHistory="true" canRunAdhoc="true"
canDisable="true" />

i've also tried the schedule cron-expression

The implementing class is:

import java.sql.SQLException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.atlassian.plugin.spring.scanner.annotation.imports.ComponentImport;
import com.atlassian.scheduler.JobRunner;
import com.atlassian.scheduler.JobRunnerRequest;
import com.atlassian.scheduler.JobRunnerResponse;

public class AggregationRunner implements JobRunner{
private static final Logger log = LoggerFactory.getLogger(MngtCountQueries.class);
private AggregateDashboardData aggregateDashboardData;

public AggregationRunner(@ComponentImport AggregateDashboardData aggregateDashboardData) {
this.aggregateDashboardData = aggregateDashboardData;

public JobRunnerResponse runJob(JobRunnerRequest request) {
try {
} catch (SQLException e) {
log.error("Could not execute Scheduled Job named AggregateDashboardData cause of Database Error:" + e.getCause() + " " + e.getMessage());
return JobRunnerResponse.failed(e.getCause());
}"AggregateDashboardData successfully executed...");
return JobRunnerResponse.success("Successfully executed Job named AggregateDashboardData");


 and the plugin-context:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""

Confluence starts without any errors, but as written above, nothing happens.  I also tried to trigger a classNotFound exception by trying to change the job-config job-key to a other value, which is not a managed bean, but there is no such exception occuring... Is the <job key="..."> not referencing the Class implementing the JobRunner? Or how does confluence determine the class referenced by the job-config?

Thanks in advice


1 answer

1 accepted

0 votes
Accepted answer

My fault:

If confluence is not clustered, you shuldn't set clusteredOnly="true"...

 <job-config name="Dashboard Aggregation" key="aggregator-job">
<job key="aggregationRunner" perClusterJob="true" clusteredOnly="false" />
<schedule cron-expression="0 0 10 * * ?" jitterSecs="10" />
<managed editable="true" keepingHistory="true" canRunAdhoc="true"
canDisable="true" />

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Friday in Agile

Are you a Jira Service Desk agent? We want to talk to you!

Are you a whiz at handling tickets and looking at how you can further optimize your workflow with automation? Do you tackle detailed customer support questions while simultaneously getting flooded wi...

52 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you