mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-04 07:31:58 +00:00
fix(kanban): align failure diagnostics with retry limit
This commit is contained in:
parent
6e60a8a092
commit
d9fef0c8ab
4 changed files with 134 additions and 15 deletions
|
|
@ -224,6 +224,11 @@ def _compute_task_diagnostics(
|
|||
rule definitions.
|
||||
"""
|
||||
from hermes_cli import kanban_diagnostics as kd
|
||||
from hermes_cli.config import load_config
|
||||
|
||||
diag_config = kd.config_from_kanban_config(
|
||||
(load_config().get("kanban") or {})
|
||||
)
|
||||
|
||||
# Build the candidate task list. We need each task's row + its
|
||||
# events + its runs. Doing N separate queries works but scales
|
||||
|
|
@ -270,6 +275,7 @@ def _compute_task_diagnostics(
|
|||
r,
|
||||
events_by_task.get(tid, []),
|
||||
runs_by_task.get(tid, []),
|
||||
config=diag_config,
|
||||
)
|
||||
if diags:
|
||||
out[tid] = [d.to_dict() for d in diags]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue