Different behavior when interrupting a job, depending on the parallel flow order #3939
Labels
for: backport-to-5.1.x
Issues that will be back-ported to the 5.1.x line
has: minimal-example
Bug reports that provide a minimal complete reproducible example
in: core
related-to: flow-definition
type: bug
Milestone
Bug description
Different behavior when interrupting a job, depending on the parallel flow order.
I am creating a parallel flow and trying to interrupt a job from one of them. Further behavior depends on the order of the flow inside the add() function. In one case, the job is finished immediately, in the other, all steps from another parallel flow are executed.
Flow parallelFlow = new FlowBuilder<SimpleFlow>("parallelFlow")
.split(new SimpleAsyncTaskExecutor())
.add(nonInterruptingFlow, interruptingFlow)
.build();
Environment
Spring Batch: 4.3.1
Steps to reproduce
Expected behavior
Same behavior after interruption.
Minimal Complete Reproducible example
springbatchdemo.zip
The text was updated successfully, but these errors were encountered: