summaryrefslogtreecommitdiff
path: root/internal/api/google_calendar_test.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-07-15 01:22:08 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-07-16 02:48:28 +0000
commit16649b7b00ed0b3be03aa039922536a853993597 (patch)
tree3f73643be87c58147f9a8b726a3e3d904b99e381 /internal/api/google_calendar_test.go
parent159e6710649c879d0df77eefc6c09f7d088d7229 (diff)
fix(tasks): make CreateNextIteration atomically self-guarding
Folds the "is this still the latest row in its series?" check directly into the INSERT as a single atomic INSERT...SELECT...WHERE NOT EXISTS statement, instead of a separate SELECT-then-INSERT sequence. Closes a narrow race where the completion trigger and the periodic due-date check could both pass their "still latest" check before either had inserted, producing two duplicate successor rows for the same series. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VTUSAEKfsPc6WGDq45yPHD
Diffstat (limited to 'internal/api/google_calendar_test.go')
0 files changed, 0 insertions, 0 deletions