Skip to content

Runs: a step error during a Stop records the run as failed after stop requested #807

Description

@harenome

Priority

P3

Components

app/nullius/execution.py (Stop, a part's failure path)

Evidence

If Stop already holds the run lock but has not yet set its stop event, a step exception at the same moment records the run as failed after the log says "stop requested". Reproduced on main (execution.py:835-841, 1008-1014).

Reproduction

  1. Start a run whose step raises after a gate.
  2. Press Stop and pause it just after it takes the run lock, before it sets the stop event.
  3. Release the step so it raises.
  4. Release Stop.
  5. Read run.json and the log.

Expected

A run the user stopped ends as stopped.

Acceptance

  • A step exception during a Stop records stopped, not failed
  • Test with the forced ordering above

Dependencies and related

#770, #777

Activity

  1. added
    bug
    P3
    on Dec 3, 2026
  2. added theissue type on Dec 3, 2026
  3. self-assigned this
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions