diff options
| author | Claudomator Agent <agent@claudomator> | 2026-03-09 07:33:02 +0000 |
|---|---|---|
| committer | Claudomator Agent <agent@claudomator> | 2026-03-09 07:33:13 +0000 |
| commit | 8b6c97e0ca25f62d8e8039199f1b1383b44380b2 (patch) | |
| tree | e46b766ce66be1bb9ee30bdf4521fe76c60d7dba /scripts/reset-running-tasks | |
| parent | 361040939eb428f990c97ab0ab983e5360761b27 (diff) | |
storage: fix DeleteTask atomicity and use recursive CTE
Replace BFS loop with a single recursive CTE to collect all descendant
task IDs in one query, and wrap all DELETE statements in a transaction
so a partial failure cannot leave orphaned executions.
Add TestDeleteTask_DeepSubtaskCascadeAtomic: creates a 3-level task
hierarchy with executions at each level, deletes the root, and verifies
all tasks and executions are removed with an explicit orphan-row check.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'scripts/reset-running-tasks')
0 files changed, 0 insertions, 0 deletions
