summaryrefslogtreecommitdiff
path: root/internal/cli/logs.go
diff options
context:
space:
mode:
authorClaudomator Agent <agent@claudomator>2026-03-09 07:33:02 +0000
committerClaudomator Agent <agent@claudomator>2026-03-09 07:33:13 +0000
commit8b6c97e0ca25f62d8e8039199f1b1383b44380b2 (patch)
treee46b766ce66be1bb9ee30bdf4521fe76c60d7dba /internal/cli/logs.go
parent361040939eb428f990c97ab0ab983e5360761b27 (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 'internal/cli/logs.go')
0 files changed, 0 insertions, 0 deletions