Coordinate workspace cleanup with active operations

This commit is contained in:
2026-12-01 20:17:27 +00:00
parent 038105ece9
commit 9e3fc25fdd
15 changed files with 358 additions and 32 deletions

View File

@@ -795,21 +795,21 @@ narratio run 2026-04-04 --stage prepare --force
Relevant reference: [Operations: Restore Workflow](./operations.md#restore-workflow).
## Session lock conflict (`.lock`)
## Workspace lock wait (`.lock`)
Symptom:
- command fails acquiring session lock.
- a mutating command waits for the workspace lock or is cancelled while waiting.
Likely causes:
- another process is running for the same session;
- another process is mutating the same workspace;
- a process still holds the operating-system lock while it is shutting down.
Diagnostics:
```bash
ls -l {workspace.root}/work/{campaign}/{session_id}/.lock
ls -l {workspace.root}/.lock
ps aux | grep narratio
```