#781 HIGH: HeartbeatService SKIP LOCKED may cause premature task timeout

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

Description

Edit
HeartbeatService uses FOR UPDATE SKIP LOCKED, skipping rows locked by workflow transaction. If workflow holds lock >30s during complex orchestration, heartbeat is skipped and TimeoutService marks task as failed. Location: engine/services/heartbeat_service.py:221-227. Fix: Use advisory locks or increase staleness threshold.

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...