Skip to content

Commit 7eb7782

Browse files
committed
Use StoppableTasklet#stop(StepExecution) in SimpleJobOperator#stop(long executionId)
1 parent bc160ff commit 7eb7782

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/launch/support/SimpleJobOperator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public boolean stop(long executionId) throws NoSuchJobExecutionException, JobExe
350350
Tasklet tasklet = ((TaskletStep) step).getTasklet();
351351
if (tasklet instanceof StoppableTasklet) {
352352
StepSynchronizationManager.register(stepExecution);
353-
((StoppableTasklet) tasklet).stop();
353+
((StoppableTasklet) tasklet).stop(stepExecution);
354354
StepSynchronizationManager.release();
355355
}
356356
}
@@ -363,7 +363,7 @@ public boolean stop(long executionId) throws NoSuchJobExecutionException, JobExe
363363
}
364364
}
365365
catch (NoSuchJobException e) {
366-
logger.warn("Cannot find Job object in the job registry. StoppableTasklet#stop() will not be called", e);
366+
logger.warn("Cannot find Job object in the job registry. StoppableTasklet#stop(StepExecution stepExecution) will not be called", e);
367367
}
368368

369369
return true;

0 commit comments

Comments
 (0)