Skip to content
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

Allow defining the Job level on @JobScope when we are using parent and child jobs (JobStepBuilder) #4597

Open
nightswimmings opened this issue May 17, 2024 · 0 comments
Labels
status: waiting-for-triage Issues that we did not analyse yet type: feature

Comments

@nightswimmings
Copy link

When using an architecture of jobs and subjobs, we miss a way to specify the level of @JobScope on certain @beans.
For instance, if we have a parent job that executes jobA, jobB and jobC, a @bean marked with @JobScope will be instantiated 3 times (scope set to bottom-level of job), but I want it to be shared among the three subjobs.

If I define the @bean without batch scopes, therefore a singleton, when joblaunching parent job multiple times, my @bean is shared among all parent job executions

@nightswimmings nightswimmings added status: waiting-for-triage Issues that we did not analyse yet type: feature labels May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage Issues that we did not analyse yet type: feature
Projects
None yet
Development

No branches or pull requests

1 participant