Skip to content

A Delete launch that fails part way removes run.json first and leaves a folder that blocks its name #767

Description

@harenome

Priority

P2

Components

  • Runs

Evidence

  • shutil.rmtree (execution.py:2094) stops at the first error, in directory listing order. On ext4, run.json came first.
  • Trigger: a file the user cannot remove in jobs/, such as root-owned container output.
  • Probe, jobs/ read-only:
    delete: stays ['r1'] kept ['r1 stays in .../runs/r1: Permission denied']
    left in the folder: ['jobs']
    deletable again: ValueError r1 is not a run Nullius made
    after a restart, runs listed: []
    name check for a new run named r1: taken
    

Reproduction

  1. A finished run with a file in jobs/ the user cannot delete.
  2. Delete launch, then Delete again.

Expected

The run stays listed and deletable once the file is removable.

Acceptance

  • A failed removal leaves run.json in place (test)

Dependencies and related

#770, #764

Activity

  1. self-assigned this
    on Dec 3, 2026
  2. added
    bug
    P2
    on Dec 3, 2026
  3. 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

Labels

P2bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions