Skip to content

Runs: a new launch under a name being deleted can be removed or unregistered by that delete #802

Backlog

Description

@harenome

Priority

P3

Components

app/nullius/execution.py (delete, start)

Evidence

Both reproduce on main and on the #766 fix, in one process:

  • Pause a Delete right after _remove_run returns. execution.start starts and registers a new run of the same name. Resume the Delete: it pops the new run from EXECUTIONS (and unregisters it), while its record stays on disk.
  • Pause Delete A after run_folder read the old record, before it claims the name. Delete B finishes, and a new launch under that name finishes. Resume A: it removes the new run's folder and unregisters it.

Reproduction

  1. A finished run r1.
  2. Pause a Delete of r1 at either point above.
  3. Start a new launch named r1 (and, for the second case, let a second Delete of r1 finish first).
  4. Resume the paused Delete.

Expected

A Delete only ever removes or unregisters the run it inspected. A new launch cannot take a name while a Delete of it is still running.

Acceptance

  • A Delete claims the requested names before reading their records, and validates them under the claim (a multi-run request claims its set together)
  • A new launch refuses a name a Delete holds, until that Delete has finished
  • Tests for both pause points

Dependencies and related

#766, #770

Activity

  1. added
    bug
    P3
    on Dec 3, 2026
  2. added theissue type 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

No one assigned

    Labels

    P3bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions