Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GH-4703: Enhance StoppableTasklet interface to support step-specific stop requests #4715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
HyunSangHan wants to merge 3 commits into spring-projects:main from HyunSangHan:GH-4703

Conversation

Copy link
Contributor

@HyunSangHan HyunSangHan commented Nov 24, 2024

Closes: #4703

Resolves a limitation in the StoppableTasklet interface where distinguishing which specific StepExecution to stop was not possible during concurrent job executions.

injae-kim reacted with thumbs up emoji injae-kim reacted with heart emoji injae-kim reacted with rocket emoji
Comment on lines +50 to +52
default void stop(StepExecution stepExecution) {
stop();
}
Copy link
Contributor Author

@HyunSangHan HyunSangHan Nov 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new method provides a default implementation that delegates the call to the existing stop() method, ensuring backward compatibility for implementations that do not need step-specific stopping logic.

If you have any suggestions for improvement, please feel free to provide feedback!

injae-kim and fmbenhassine reacted with thumbs up emoji
Copy link
Contributor

@fmbenhassine fmbenhassine Sep 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's great! We just need to mark the current stop method as deprecated. I will take care of that on merge.

@HyunSangHan HyunSangHan changed the title (削除) GH-4703: Enhance StoppableTasklet Interface to support step-specific stop requests (削除ここまで) (追記) GH-4703: Enhance StoppableTasklet interface to support step-specific stop requests (追記ここまで) Nov 24, 2024
fmbenhassine added a commit that referenced this pull request Sep 3, 2025
- Deprecate stop method
- Fix imports
- Update Javadocs
Copy link
Contributor

Rebased, squashed and merged as bdb2bfc. Refined in 0056722. Thank you for your contribution!

HyunSangHan reacted with rocket emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@fmbenhassine fmbenhassine fmbenhassine left review comments

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Add StepExecution parameter to StoppableTasklet.stop()

AltStyle によって変換されたページ (->オリジナル) /