My batch job is configured as follows
@Bean("MyJob")
public Job umpInpatientCensusRptBatchJob(...) throws IOException {
return jobBuilderFactory.get( "MyJob" )
.incrementer( new RunIdIncrementer() )
.start( Step0 ).on( COMPLETE ).end()
.from( Step0 ).on( CONTINUE )
.to( Step1 )
.next( Step2 )
.next( Step3 )
.end()
.build();
}
where Steps 0, 1, and 3 are tasklets. My Job is completing with the message Job: [FlowJob: [name=MyJob]] completed with the following parameters
. However, it doesn't exit - it hangs there. When I run it locally on IntelliJ, I have to manually quit the job.
I haven't implemented any asynchronicity. Each tasklet is also explicitly returning a FINISHED
status upon completion.