Skip to content

t1199: Tune worker hung timeout based on task ~estimate field#1826

Merged
marcusquinn merged 1 commit intomainfrom
feature/t1199
Feb 18, 2026
Merged

t1199: Tune worker hung timeout based on task ~estimate field#1826
marcusquinn merged 1 commit intomainfrom
feature/t1199

Conversation

@marcusquinn
Copy link
Owner

Fixes worker hung timeout being a fixed 30m default regardless of task complexity.

Changes

  • _common.sh: New get_task_hung_timeout() function — parses ~estimate from TODO.md, returns 2x estimate (4h cap, 30m minimum/default). Supports ~Nh, ~N.Nh, ~Nm formats.
  • pulse.sh Phase 4: Per-task hung timeout replaces global SUPERVISOR_WORKER_TIMEOUT for the 'no log output' check. Global timeout still applies as the absolute max runtime (Check 1).
  • dispatch.sh: Logs computed hung timeout at dispatch time (hung_timeout_seconds= in dispatch metadata + supervisor log).

Behaviour

Estimate Hung timeout
~30m 1h (1800s → 3600s)
~1h 2h (7200s)
~2h 4h (14400s, at cap)
~3h 4h (capped)
none 30m (1800s default)

Root cause

t311.2, t311.3, and t303 all failed with Worker hung (no output for ~1800s, timeout 1800s). The 30m default was too short for legitimately long tasks. This PR makes the timeout proportional to the task's declared estimate.

Ref #1818

@gemini-code-assist
Copy link

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 18, 2026

Warning

Rate limit exceeded

@marcusquinn has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 9 minutes and 43 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/t1199

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

- Add get_task_hung_timeout() to _common.sh: parses ~estimate from TODO.md,
  returns 2x estimate in seconds (4h cap, 30m minimum/default)
- Phase 4 health check in pulse.sh now uses per-task hung timeout instead of
  the global SUPERVISOR_WORKER_TIMEOUT for the 'no log output' check
- dispatch.sh logs the computed hung timeout at dispatch time for debugging
- Supports ~Nh (hours), ~N.Nh (fractional hours), ~Nm (minutes) formats
- Prevents premature kills on legitimately long tasks (t311.2, t311.3, t303)
  while keeping the safety net for actual hangs

Examples: ~1h task -> 2h timeout, ~30m -> 1h, ~3h -> capped at 4h
@github-actions
Copy link

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 28 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Wed Feb 18 23:25:35 UTC 2026: Code review monitoring started
Wed Feb 18 23:25:35 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 28

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 28
  • VULNERABILITIES: 0

Generated on: Wed Feb 18 23:25:37 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@sonarqubecloud
Copy link

@marcusquinn marcusquinn merged commit 2c6eaff into main Feb 18, 2026
11 checks passed
@marcusquinn marcusquinn deleted the feature/t1199 branch February 18, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant