feat: harden concurrency scheduling and task watchdog

This commit is contained in:
lpf
2026-03-05 11:32:06 +08:00
parent 0f3196f305
commit 2fbb98bccd
20 changed files with 1526 additions and 159 deletions

View File

@@ -17,14 +17,14 @@
"enabled": false,
"tick_interval_sec": 30,
"min_run_interval_sec": 20,
"max_pending_duration_sec": 180,
"max_pending_duration_sec": 900,
"max_consecutive_stalls": 3,
"max_dispatch_per_tick": 2,
"max_dispatch_per_tick": 0,
"notify_cooldown_sec": 300,
"notify_same_reason_cooldown_sec": 900,
"quiet_hours": "23:00-08:00",
"user_idle_resume_sec": 20,
"max_rounds_without_user": 12,
"max_rounds_without_user": 0,
"task_history_retention_days": 3,
"waiting_resume_debounce_sec": 5,
"idle_round_budget_release_sec": 1800,
@@ -61,8 +61,8 @@
"autonomy_tick_interval_sec": 20,
"autonomy_min_run_interval_sec": 20,
"autonomy_idle_threshold_sec": 20,
"autonomy_max_rounds_without_user": 120,
"autonomy_max_pending_duration_sec": 180,
"autonomy_max_rounds_without_user": 0,
"autonomy_max_pending_duration_sec": 900,
"autonomy_max_consecutive_stalls": 3,
"autolearn_max_rounds_without_user": 200,
"run_state_ttl_seconds": 1800,