#783 HIGH: complete_run locks run but not task table - state inconsistency risk

closed high Created 2026-01-02 03:32 · Updated 2026-01-02 06:26

Description

Edit
complete_run locks run row with FOR UPDATE but updates task table without locking. Another process could claim different run for same task, causing task state 'running' overwritten to 'completed'. Location: migrations/01KCFHD0PAR43NCPHN7J0VVT2K:185-240. Fix: Add FOR UPDATE on task row before update.

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...