spring-projects / spring-projects/spring-batch
Create a new @FlowScope
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 3k
- Forks
- 2.5k
- Avg merge
- 6d 53m
- Merged PRs (30d)
- 3
Description
Context
I want to share a bean between different steps of the same flow (and dies just after the flow has ended). I wanted to use the @JobScope but it doesn't support multi-threading. I'm wondering if we can add a @FlowScope which support multi-threading.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the existing @JobScope behavior and how flow steps share context, especially under multi-threading. Define how a proposed @FlowScope would be created, shared between steps, and destroyed after the flow ends; done means the scope supports the stated lifecycle and multi-threaded use.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100