spring-projects / spring-projects/spring-batch

From JobExecution it's not possible to get the Job Step Execution as JobExecutions [BATCH-2579]

Open
#1,024 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: core status: waiting-for-triage type: bug
Dominant language
Java
Stars
3k
Forks
2.5k
Avg merge
6d 53m
Merged PRs (30d)
3

Description

sathiyaseelan muthukumar opened BATCH-2579 and commented

I have job configured similar to the below one.

<job id="parent">
<step id="child1_stp">
<job ref="child1"/>
</step>
<step id="child2_stp">
<job ref="child2"/>
</step>
</job>
<job id="child1">
<step id="step1">
</step>
<step id="step2">
</step>
</job>
<job id="child2">
<step id="step3">
</step>
<step id="step4">
</step>
</job>

When I'm accessing jobExecution of parentJob , I'm getting step executions of child1_stp, child2_stp ( the job steps). But there is no direct way of getting the steps executions within those job steps.

I have to use the job Explorer to get the steps (step1, step2, step3, step4). If there is a way to identify and access the Job Executions from the parent job Execuion, that would be better.


Affects: 3.0.7

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 with the JobExecution and JobExplorer APIs named in the report, then trace how nested job and step executions are represented for the parent/child configuration. Compare the parent’s job-step results with the child executions. Done means the parent execution provides a supported way to identify and access those child JobExecutions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.