OpenFn / OpenFn/lightning

Wrong information around starting_job during a retry run.

Open
#3,551 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Elixir
Stars
296
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
50

Description

Describe the bug
starting_job is the job from which a user started a run.
This works perfectly when you start a run from trigger or a specific node but it's then wrong when you select a node from a previous run to do a retry run.

Image

During a retry run, whatever job you have selected is picked as the starting_job when the run actually starts from the top(first node) of the workflow.

Version number Latest

If you're running on a tagged version, include the number: vX.Y.Z

If you're running locally with an unreleased version, the commit sha: 84b1bdc

I have reproduced this locally on main:

  • Yes
  • No

To Reproduce Steps to reproduce the behavior:

  1. Go to a previous run
  2. Select a job which isn't the first job of the workflow that allows a retry run
  3. Do a retry run from there
  4. You'll notice the history of your recent run has starting_job being the job you had selected but the workflow was actually executed from the top

Expected behavior
The starting_job should be whatever job that was executed first. In the case of a retry run, we start execution from the top, not the selected job the retry started from.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Contributor guide

No contributing guide indexed for this repository

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 reproducing the retry run from a previous run, selecting a non-first job, and trace where starting_job is assigned during retry execution. Done means the recent run history reports the first job actually executed—the workflow's top node—rather than the selected retry node.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.