RESOLVED - issue BATCH-1363: Job stopped in split state does not finish with status = STOPPED
Add some more test cases
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.0.xsd
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<import resource="common-context.xml" />
|
||||
|
||||
<job id="job" xmlns="http://www.springframework.org/schema/batch">
|
||||
<split id="split1" task-executor="taskExecutor">
|
||||
<flow>
|
||||
<step id="stop" parent="interruptibleStep" />
|
||||
</flow>
|
||||
<flow>
|
||||
<step id="s1" parent="step1" />
|
||||
</flow>
|
||||
</split>
|
||||
</job>
|
||||
<!-- Can't use async with Map JobRepository -->
|
||||
<bean id="taskExecutor" class="org.springframework.core.task.SyncTaskExecutor" />
|
||||
|
||||
<bean id="interruptibleStep" parent="step1">
|
||||
<property name="tasklet">
|
||||
<bean
|
||||
class="org.springframework.batch.core.configuration.xml.InterruptibleTasklet">
|
||||
<property name="stepNamesList" ref="stepNamesList" />
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
</beans>
|
||||
Reference in New Issue
Block a user