Skip to content

Commit

Permalink
Merge pull request #18124 from geoand/quartz-forced-message
Browse files Browse the repository at this point in the history
Fix actionable error message in Quartz scheduling
  • Loading branch information
geoand authored Jun 24, 2021
2 parents e2bbdc8 + 8c9936e commit b4fee4a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public QuartzScheduler(SchedulerContext context, QuartzSupport quartzSupport, Sc
org.quartz.Scheduler produceQuartzScheduler() {
if (scheduler == null) {
throw new IllegalStateException(
"Quartz scheduler is either explicitly disabled through quarkus.scheduler.enabled=false or no @Scheduled methods were found. If you only need to schedule a job programmatically you can force the start of the scheduler via quarkus.quartz.force-start=true");
"Quartz scheduler is either explicitly disabled through quarkus.scheduler.enabled=false or no @Scheduled methods were found. If you only need to schedule a job programmatically you can force the start of the scheduler by setting 'quarkus.quartz.start-mode=forced'.");
}
return scheduler;
}
Expand Down

0 comments on commit b4fee4a

Please sign in to comment.