I am using:
<dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz</artifactId> <version>1.8.0</version> </dependency>
When application comes up, I consistently get:
2013-01-03 15:25:34 UpdateChecker [DEBUG] Checking for available updated version of Quartz... 2013-01-03 15:25:43 UpdateChecker [DEBUG] Quartz version update check failed: java.io.IOException: Server returned HTTP response code: 503 for URL: long url here
How can I eliminate these? (Both the message and attempt to update)
We disable the quartz scheduler locally by commenting out the scheduler factory bean in the jobs. xml file.
deleteJob(jobKey(<JobKey>, <JobGroup>)); This method will only interrupt/stop the job uniquely identified by the Job Key and Group within the scheduler which may have many other jobs running. scheduler. shutdown();
A misfire occurs if a persistent trigger “misses” its firing time because of the scheduler being shutdown, or because there are no available threads in Quartz's thread pool for executing the job. The different trigger types have different misfire instructions available to them.
You have to reschedule the job by creating a new trigger. This will replace the same job with a new trigger fire time.
In quartz.properties
, you can add
org.quartz.scheduler.skipUpdateCheck=true
In code, this would look like:
Properties props = new Properties(); props.setProperty("org.quartz.scheduler.skipUpdateCheck","true"); // set other properties ...such as props.setProperty("org.quartz.jobStore.class", "org.quartz.simpl.RAMJobStore"); props.setProperty("org.quartz.threadPool.class", "org.quartz.simpl.SimpleThreadPool"); props.setProperty("org.quartz.threadPool.threadCount", "4"); SchedulerFactory schdFact = new StdSchedulerFactory(props);
Edit:
From @Stephan202's comment below you can use the constant PROP_SCHED_SKIP_UPDATE_CHECK
The code in that case would be
props.setProperty(StdSchedulerFactory.PROP_SCHED_SKIP_UPDATE_CHECK,"true");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With