This commit is contained in:
2026-08-16 18:59:29 +02:00
parent b617342601
commit d6fe7c38d5
5 changed files with 215 additions and 27 deletions
@@ -26,8 +26,9 @@ type OrphanReclaimResult struct {
}
// ReclaimOrphanedRunning resets in-flight work left by a dead worker process so
// ClaimNext / feed sync claim can pick it up again. Call only when the processing
// worker heartbeat is missing or stale (single-worker architecture)never while
// ClaimNext / feed sync claim can pick it up again. Call on every worker process
// start (before TouchHeartbeat) under the single-worker architecture — a live
// heartbeat from a just-killed process must not skip reclaim. Never call while
// another live worker may own the rows.
//
// Unlike CleanupStuck (age-gated fail), this requeues immediately: running → pending