t1467: recycle stale pulse process when underfilled#4326
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis PR adds a stale process auto-recovery mechanism to the pulse dedup logic. It introduces a new configurable timeout (PULSE_UNDERFILLED_STALE_RECOVERY_TIMEOUT) and implements an early recycling pathway that detects long-running pulse processes with insufficient active workers, triggering their controlled termination and PID cleanup. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
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. Comment |
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report �[0;34m[INFO]�[0m Latest Quality Status: �[0;34m[INFO]�[0m Recent monitoring activity: 📈 Current Quality Metrics
Generated on: Fri Mar 13 02:34:40 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
|



Summary
PULSE_UNDERFILLED_STALE_RECOVERY_TIMEOUT(default 900s) topulse-wrapper.sh.check_dedup()to recycle a running pulse process early when it is old enough and worker utilization is under target.Verification
shellcheck .agents/scripts/pulse-wrapper.shbash -n .agents/scripts/pulse-wrapper.shCloses #4325
Refs #4311
Summary by CodeRabbit