spring-projects / spring-projects/spring-batch

Create a new @FlowScope

Open
#4,782 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: feedback-provided type: feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.