Repository navigation
Backlog
Feature
0 / 30 of 3 issues completed
Copy link
Labels
Description
Priority
P3
Components
app/nullius/execution.py (Delete launch), app/nullius/workspace.py (rename, delete, caches), app/nullius/judge/store.py, app/web/runs.py, app/web/workspaces.py
Today
Deleting a run or a workspace, and writing a workspace's caches, are several steps with nothing tying them together. A crash, a failed write, a request at the same time or a new run or workspace taking the old name can leave the wrong data removed or kept. Most open sub-issues of #770 come from this: #769 (delete half), #776, #798, #802, #809, #824.
Wanted
Within the model in docs/concepts.md (Concurrency and failures):
- One profile lock (a file lock) for every workspace and judgement change, taken by web UIs and commands alike, held briefly, with what it changes re-read under it.
- A workspace is identified by its UID and folder, not its name; forms carry the identity they showed.
- Deleting a run or a workspace is one rename into
.trash/<kind>/<name>.<token>/with an intent recording what to clean. Cleanup is resumable and verified; the name stays taken until local cleanup is done. - Pending cleanup is shown on Launches and Workspaces and handled by
nullius cleanup. Host copies are never removed automatically.
Delivered in three steps (sub-issues). The last ships as one release, since enabling part of the writers reopens the races.
Acceptance
- The three sub-issues are done
- A failed save during a rerun or a delete is ignored and the run's record falls behind #769 (delete half), A Delete launch retried after a partial removal keeps the judgements of a job it already erased #776, Workspaces: a late write from a renamed workspace lands in a new workspace created under its old name #798, Runs: a new launch under a name being deleted can be removed or unregistered by that delete #802, Runs: a multi-machine launch's decision file is left behind after an interrupted launch #809 and Delete: a root that disappears during the copy scan lets Delete drop judgements another copy still needs #824 are closed by them
Dependencies and related
Sub-issues
Collapse Sub-issuesSub-issues
Loading 3 sub-issues
Activity