quartz-mongodb icon indicating copy to clipboard operation
quartz-mongodb copied to clipboard

autostartup=false not being honoured

Open ManinderHSC opened this issue 7 years ago • 2 comments
trafficstars

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

	<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>

ManinderHSC avatar Mar 10 '18 02:03 ManinderHSC

Feel free to look into a PR.

michaelklishin avatar Mar 10 '18 02:03 michaelklishin

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

arulrajnet avatar Aug 17 '20 01:08 arulrajnet