Skip to content

fix(execution): refuse a rerun of a run being deleted - #805

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/delete-during-rerun
Dec 3, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/delete-during-rerun

Conversation

@harenome

@harenome harenome commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #766

What

  • Delete launch claims each run first; a run another delete holds is refused.
  • Then it re-checks each run is ended under the run's lock.
  • Rerun on a claimed or deleted run is refused (409).
  • A deleted run is marked before its claim goes; a Rerun already found writes nothing, cap settlement included.

Touches

  • app/nullius/execution.py: delete, again, new drop_cap.
  • app/web/execute.py: job_cap settles through drop_cap.
  • Tests: four in test_execution_again.py, one in test_rerun_page.py.

Verified

  • Tests: overlapping deletes; delayed Rerun after name reuse, with a cap; delete waiting on a Rerun's lock. All fail on main.
  • Backend and route suites pass.

Risk

Agents

  • Claude Code, Opus 5.5
  • Codex, GPT-6.2-Astra (review)

@harenome
harenome marked this pull request as ready for review December 3, 2026 20:55
@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 3, 2026
@harenome
harenome merged commit 318198a into ThinkFlowLab:main Dec 3, 2026
4 checks passed
@harenome
harenome deleted the fix/delete-during-rerun branch December 3, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deleting a launch while it is rerun removes the running rerun's folder

1 participant