-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Description
Dzmitry Lazerka opened SPR-11689 and commented
Reproducible with both Quartz 2.1.7 and the most recent 2.2.1.
Examples of configs are:
- http://forum.spring.io/forum/spring-projects/container/7915-problem-with-quartz-and-spring-durable-jobs
- Our config:
<bean name="ImportJob" class="org.springframework.scheduling.quartz.JobDetailFactoryBean">
<property name="jobClass" value="my.ImportJob"/>
</bean>
<bean id="importTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerFactoryBean">
<property name="jobDetail" ref="ImportJob"/>
<property name="group" value="etl"/>
<property name="startDelay" value="10000"/>
<property name="repeatInterval" value="${import.interval}"/>
</bean>
<bean name="scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="schedulerName" value="Our Scheduler"/>
<property name="autoStartup" value="false" />
<property name="waitForJobsToCompleteOnShutdown" value="true"/>
<property name="triggers">
<list>
<ref bean="importTrigger"/>
</list>
</property>
</bean>Quick debugging showed that org.springframework.scheduling.quartz.SchedulerAccessor adds jobDetail without its trigger, although it has the trigger.
Affects: 4.0.3
Reference URL: http://forum.spring.io/forum/spring-projects/container/7915-problem-with-quartz-and-spring-durable-jobs
Referenced from: commits 9a59292
Metadata
Metadata
Assignees
Labels
type: enhancementA general enhancementA general enhancement