Skip to content

Commit

Permalink
Some more logging at task manager initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Jun 23, 2017
1 parent 511182b commit f59de3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -104,7 +104,7 @@ public void init(OperationResult result) throws TaskManagerInitializationExcepti
}

// populate the scheduler with jobs (if RAM-based), or synchronize with midPoint repo
if (taskManager.getExecutionManager().synchronizeJobStores(result) == false) {
if (!taskManager.getExecutionManager().synchronizeJobStores(result)) {
if (!configuration.isJdbcJobStore()) {
LOGGER.error("Some or all tasks could not be imported from midPoint repository to Quartz job store. They will therefore not be executed.");
} else {
Expand Down
Expand Up @@ -126,12 +126,14 @@ void initializeScheduler() throws TaskManagerInitializationException {
quartzProperties.put("org.quartz.threadPool.makeThreadsDaemons", "true");
}

LOGGER.info("Initializing Quartz scheduler (but not starting it yet).");
// initialize the scheduler (without starting it)
try {
LOGGER.trace("Quartz scheduler properties: {}", quartzProperties);
StdSchedulerFactory sf = new StdSchedulerFactory();
sf.initialize(quartzProperties);
getGlobalExecutionManager().setQuartzScheduler(sf.getScheduler());
LOGGER.info("... Quartz scheduler initialized.");
} catch (SchedulerException e) {
throw new TaskManagerInitializationException("Cannot initialize the Quartz scheduler", e);
}
Expand Down

0 comments on commit f59de3d

Please sign in to comment.