26

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)

jth41
  • 3,808
  • 9
  • 59
  • 109
James Raitsev
  • 92,517
  • 154
  • 335
  • 470
  • 8
    I wonder how many other libraries are doing version update checks. This is so awful. – Rüdiger Schulz Sep 17 '14 at 15:55
  • Update check has been removed: https://github.com/quartz-scheduler/quartz/commit/e1f78465fae7d3e81d30487f7f47697ec9a30d87#diff-322198a516a6b5e2cb61317c0b808831 – Rein Sep 18 '19 at 06:25

1 Answers1

37

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");
Reimeus
  • 158,255
  • 15
  • 216
  • 276
  • I've given you an _all-code_ example here. You can load the properties in from the existing `quartz.properties` and add to them also. – Reimeus Jan 03 '13 at 22:00
  • The corresponding constant is `StdSchedulerFactory.PROP_SCHED_SKIP_UPDATE_CHECK`. – Stephan202 May 25 '13 at 14:50
  • 1
    If using Spring framework and the SchedulerFactoryBean and you don't have (or want) a quartz.properties file, see this question/answer for how to set properties on Quartz in bean config: http://stackoverflow.com/questions/8403384/how-to-configure-quartz-scheduler-with-spring-style-properties-file-in-tomcat – Ed OConnor-Giles May 28 '15 at 15:19
  • I don't know why,but using that in default `quartz.properties` does not work for me, while loading it myself and passing as Properties does work. – lapo Mar 21 '18 at 08:33