Open ManinderHSC opened 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>
Feel free to look into a PR.
The autoStartup is not the properties of quartz JobStore . We can add it as like spring does. They support for autoStarup and startupDelay.
autoStartup
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">