spring-batch icon indicating copy to clipboard operation
spring-batch copied to clipboard

<stop /> applies only to externalized flow, not to surrounding job [BATCH-1710]

Open spring-projects-issues opened this issue 14 years ago • 2 comments
trafficstars

Arnaud Cogoluègnes opened BATCH-1710 and commented

when used within a externalized flow, the <stop /> tag only stops the externalized flow, not the surrounding job execution.


Affects: 2.1.6

Reference URL: http://forum.springsource.org/showthread.php?p=336525

spring-projects-issues avatar Mar 13 '11 09:03 spring-projects-issues

Dave Syer commented

This is interesting and possibly more complicated than I first thought. It makes sense to me that if a <flow/> stops its enclosing step (and job) should stop. If an externalized Job in a JobStep stops, though, maybe that was intentional, and maybe the parent job wants to look at the stopped status and decide whether to stop itself. Also, if I send a stop signal to a job that contains a nested JobStep, should the nested executions be stopped as well (and how will the framework know how to do that). It might turn into a bit of a can of worms here.

I propose that we should extend the stop signal from a nested flow right away in 2.1.7, and then leave the rest to stew for a bit. Does that make sense? If you have some test cases or usages that led you to discover the issue, we could use those to explore the problem.

spring-projects-issues avatar Mar 14 '11 02:03 spring-projects-issues

Can you provide a sample project that uses the latest release of Spring Batch and that exhibits the behavior? To help you in reporting your issue, we have prepared a project template that you can use as a starting point. Please check the Issue Reporting Guidelines for more details about this.

Thank you for your collaboration.

cppwfs avatar Jul 10 '23 18:07 cppwfs