From 8c9936ed76212812358d219f5952bdfd108bfa1c Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Thu, 24 Jun 2021 11:19:45 +0300 Subject: [PATCH] Fix actionable error message in Quartz scheduling --- .../main/java/io/quarkus/quartz/runtime/QuartzScheduler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/quartz/runtime/src/main/java/io/quarkus/quartz/runtime/QuartzScheduler.java b/extensions/quartz/runtime/src/main/java/io/quarkus/quartz/runtime/QuartzScheduler.java index a71c1278f9bfd..5dd99fee69ebb 100644 --- a/extensions/quartz/runtime/src/main/java/io/quarkus/quartz/runtime/QuartzScheduler.java +++ b/extensions/quartz/runtime/src/main/java/io/quarkus/quartz/runtime/QuartzScheduler.java @@ -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; }