Migration to spring-boot 4+ and spring-batch 6+: job instance executor threads do not stop after jobOperator.stop(jobExecution) #5134
Closed
igorjava2025
started this conversation in
Migration Support
Replies: 1 comment
-
|
This is reported here #5114. The fix is planned for the upcoming 6.0.1. Thank you for reporting it here anyway. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I attempted to migrate project from spring boot 3.1.1 to spring boot 4.0.0 and I encountered a problem with stopping a job instance correctly.
Expected: jobOperator.stop(jobExecution) will stop the execution of job instance work (after process current chunk).
Actual: jobOperator.stop(jobExecution) will update job execution db status (status STOPPED), but it will not stop job instance taskExecutor work (taskExecutor continue to see the jobExecution status as STARTED).
Can you give me some advice on how to fix this (best practice or example with correct work)?
Job configuration kotlin code for context:
Beta Was this translation helpful? Give feedback.
All reactions