Skip to content

feat(kanban): add max_in_progress config to cap concurrent running tasks (#22981)#28420

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-de55f5dd
May 19, 2026
Merged

feat(kanban): add max_in_progress config to cap concurrent running tasks (#22981)#28420
teknium1 merged 1 commit into
mainfrom
hermes/hermes-de55f5dd

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Salvages #22981 by @SimbaKingjoe.

Adds kanban.max_in_progress config knob — caps simultaneously running tasks. When the board already has N running, dispatcher skips spawning more so slow workers (local LLMs, resource-constrained hosts) finish what they have before more pile up and time out.

  • New max_in_progress kwarg on dispatch_once()
  • Gateway dispatcher reads kanban.max_in_progress from config with validation (warns on invalid/below-1 values)
  • 3 new tests covering at-limit / partial-headroom / unlimited paths

Original branch was stale; applied substantive change manually onto current main. Authorship preserved via rebase merge.

Salvages #22981 by @SimbaKingjoe. Adds 'kanban.max_in_progress' config
that caps simultaneously running tasks. When the board already has N
running, dispatcher skips spawning so slow workers (local LLMs,
resource-constrained hosts) don't pile up and time out.

Threads through dispatch_once(max_in_progress=) and gateway dispatcher
config parsing with validation (warns on invalid/below-1 values).
@teknium1 teknium1 merged commit 5fdcfd8 into main May 19, 2026
@teknium1 teknium1 deleted the hermes/hermes-de55f5dd branch May 19, 2026 03:50
@github-actions

Copy link
Copy Markdown
Contributor

🔎 Lint report: hermes/hermes-de55f5dd vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 8814 on HEAD, 8814 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 4626 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/plugins Plugin system and bundled plugins comp/gateway Gateway runner, session dispatch, delivery labels May 19, 2026
r266-tech added a commit to r266-tech/hermes-agent that referenced this pull request May 26, 2026
Catches drift from NousResearch#28420 (feat(kanban): add max_in_progress config,
merged 2026-05-19) — three dispatcher-reference surfaces describe
kanban.failure_limit but not the new kanban.max_in_progress knob:

- website/docs/user-guide/features/kanban.md (Dispatcher bullet)
- AGENTS.md (Kanban one-pager)
- skills/autonomous-ai-agents/hermes-agent/SKILL.md (Kanban bullet)

Behavior documented per gateway/run.py:4784-4820 (validate_kanban_cfg):
- unset = unlimited (default)
- positive int = cap simultaneously-running tasks
- non-integer or < 1 = logged invalid and ignored (so 0 does NOT pause
  spawning — this is an anti-footgun callout in all three places)

No code change. Reference docs only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants