Skip to content

Commit

Permalink
feat(jans-keycloak-integration): enhancements to jans-keycloak-integr…
Browse files Browse the repository at this point in the history
…ation #8614

* further housekeeping in job-scheduler

Signed-off-by: Rolain Djeumen <uprightech@gmail.com>
  • Loading branch information
uprightech committed Jun 18, 2024
1 parent 92ee6d2 commit f25ff29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,13 @@ public static void main(String[] args) throws InterruptedException, ParserCreate
log.info("Application shutting down");
}catch(StartupError e) {
log.error("Application startup failed",e);
log.info("Application startup failed",e);
if(jobScheduler != null) {
jobScheduler.stop();
}
System.exit(-1);
return;
}catch(Exception e) {
log.error("Fatal error starting application",e);
log.info("Application startup failed",e);
if(jobScheduler != null ) {
jobScheduler.stop();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public void execute(JobExecutionContext context) throws JobExecutionException {
ExecutionContext effectivecontext = new QuartzExecutionContext(context.getMergedJobDataMap());
job.run(effectivecontext);
} catch(ReflectiveOperationException e) {
e.printStackTrace();
throw new JobExecutionException("Failed to run job " + jobname,e);
}catch(Exception e) {
throw new JobExecutionException("Failed to run job " + jobname,e);
}
}
Expand Down

0 comments on commit f25ff29

Please sign in to comment.