From 794b0792b3f1da4449631e8a950b33f7f6d73305 Mon Sep 17 00:00:00 2001 From: Alexey Martemyanov Date: Thu, 30 Apr 2026 15:08:15 +0600 Subject: [PATCH] [2026-04-30] executor v2 plan: timeouts + loop corrections --- work/projects/executor-v2-redesign.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/work/projects/executor-v2-redesign.md b/work/projects/executor-v2-redesign.md index a928206a..cfe0fc6e 100644 --- a/work/projects/executor-v2-redesign.md +++ b/work/projects/executor-v2-redesign.md @@ -152,3 +152,24 @@ Qualifying sources: O-L Backlog (Desktop Browsers), user_reports, watched, hack_ - executor_queue: 924 skip, 16 in_progress, 10 awaiting_go - executor_runs: 2 ci_running (blocking), 7 queued (recording pass), 6 awaiting_review, 2 complete - Blocker: runs 10+11 (ci_running) block concurrency → fix in Phase 1 + +--- + +## Timeouts + +### executor-runner.sh (worker processes) +- No-output watchdog: **30 min** → kill + mark stuck +- Hard timeout per worker: **3 hours** +- Loop sleep: **60s** (while workers alive) +- Exit condition: no live workers AND no queued tasks + +### executor-analyzer.sh (claude -p analysis) +- No-output watchdog: **5 min** → kill +- Hard timeout per task: **15 min** +- Exit condition: no unanalyzed tasks remain + +## Corrections (2026-04-30) +- Analyzer: не одна задача за запуск — внутренний цикл пока задачи есть +- Runner: sleep 60s пока workers живые; выход когда workers=0 и queued=0 +- Cron — только watchdog если скрипт упал или завершился +- Recording/UI acceptance criteria → в pr-review промпт, не отдельная фаза