michaelklishin / quartz-mongodb

A MongoDB-based store for the Quartz scheduler. This fork strives to be as feature complete as possible. Originally by MuleSoft.
Other
247 stars 199 forks source link

autostartup=false not being honoured #158

Open ManinderHSC opened 6 years ago

ManinderHSC commented 6 years ago

Below config is working with jdbcjobstore but not mongojobstore. even with autostartup=false job is getting started

<bean id="quartzSchedulerGNFilesWatcher" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">

    <property name="configLocation"
        value="file:${JBOSS_HOME}/standalone/configuration/quartz.properties" />
    <property name="schedulerName" value="quartzSchedulerGNFilesWatcher" />
    <property name="overwriteExistingJobs" value="true" />
    <property name="autoStartup" value="false" />
    <property name="applicationContextSchedulerContextKey" value="applicationContext" />
    <property name="jobFactory" ref="quartzJobFactory" />
    <!-- NOTE: Must add both the jobDetail and trigger to the scheduler! -->
    <property name="jobDetails">
        <list>
        <ref bean="gnConfigFileWatcherJob" />
        </list>
    </property>
    <property name="triggers">
        <list>
        <ref bean="gnConfigFileWatcherTrigger" />
        </list>
    </property>
</bean>
michaelklishin commented 6 years ago

Feel free to look into a PR.

arulrajnet commented 3 years ago

The autoStartup is not the properties of quartz JobStore . We can add it as like spring does. They support for autoStarup and startupDelay.