Skip to content

A work unit left in_progress by a killed run blocks the next run until it is reset by hand #3602

Done

Description

@clabonte

Reproduce

  1. Start specfuse run on a feature with several pending work units.
  2. Kill the driver while one unit is running (for example a supervising shell's timeout ends it with exit 137).
  3. Commit the feature folder as the pre-flight guard asks, then run specfuse run again.
Gate 1 halted: 2 work unit(s) never became ready.
  FEAT-X-0001/T03 was left in_progress by an interrupted run — a driver killed mid-attempt does not move it to
  an outcome. Reset it to pending with attempts: 0 and re-run.
      Waiting behind it: FEAT-X-0001/G1-CLOSE.

What happens

The driver knows exactly why the unit is stuck and what the fix is, but makes the operator edit the unit's frontmatter (status: pending, attempts: 0) and commit it before it will do any work.

Expected

A unit can only be in_progress while a driver is running it. Once this run holds the working tree's .specfuse/.loop.lock, no other driver in this tree is running, so any unit still at in_progress belongs to a run that died. The driver should reset it to pending itself, commit that, say so, and dispatch it. --dry-run should keep reporting it without writing anything.

Activity

  1. added
    bug
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions