feat(agent-queue): default max concurrency 2->3 (still env/flag configurable)

- AGENT_QUEUE_MAX default 3 (override via env or run --max N)
- sync README quick-start + env table + bytelyst-cli example to --max 3
This commit is contained in:
saravanakumardb1 2026-05-29 16:09:02 -07:00
parent 58773ac108
commit 4ed4d75a67
2 changed files with 5 additions and 5 deletions

View File

@ -43,8 +43,8 @@ chmod +x agent-queue.sh
--cwd /Users/sd9235/code/mygh/learning_ai_common_plat/dashboards/tracker-web \ --cwd /Users/sd9235/code/mygh/learning_ai_common_plat/dashboards/tracker-web \
--yolo --yolo
# start processing (foreground; Ctrl-C to stop). Run up to 2 agents at once. # start processing (foreground; Ctrl-C to stop). Run up to 3 agents at once (default).
./agent-queue.sh run --max 2 ./agent-queue.sh run --max 3
``` ```
In a **second terminal**, watch progress: In a **second terminal**, watch progress:
@ -129,7 +129,7 @@ queue is refused while the first is alive (a stale `daemon.pid` is cleared).
Wired into the repo's unified CLI (no GitHub token required for this subcommand): Wired into the repo's unified CLI (no GitHub token required for this subcommand):
```bash ```bash
./bytelyst-cli.sh agent-queue run --max 2 # full passthrough ./bytelyst-cli.sh agent-queue run --max 3 # full passthrough
./bytelyst-cli.sh aq status # short alias ./bytelyst-cli.sh aq status # short alias
``` ```
@ -157,7 +157,7 @@ queue/
| Var | Default | Meaning | | Var | Default | Meaning |
| --- | ------- | ------- | | --- | ------- | ------- |
| `AGENT_QUEUE_ROOT` | `./queue` | where the kanban folders live | | `AGENT_QUEUE_ROOT` | `./queue` | where the kanban folders live |
| `AGENT_QUEUE_MAX` | `2` | max concurrent agents | | `AGENT_QUEUE_MAX` | `3` | max concurrent agents (override per-run with `run --max N`) |
| `AGENT_QUEUE_ENGINE` | `devin` | default engine when none in frontmatter | | `AGENT_QUEUE_ENGINE` | `devin` | default engine when none in frontmatter |
| `AGENT_QUEUE_POLL` | `3` | inbox poll interval (seconds) | | `AGENT_QUEUE_POLL` | `3` | inbox poll interval (seconds) |
| `AGENT_QUEUE_VERIFY` | _(empty)_ | default auto-QA verify command; per-job `verify:` overrides it | | `AGENT_QUEUE_VERIFY` | _(empty)_ | default auto-QA verify command; per-job `verify:` overrides it |

View File

@ -40,7 +40,7 @@ STATE="$QUEUE_ROOT/.state"
LOCKS="$QUEUE_ROOT/locks" LOCKS="$QUEUE_ROOT/locks"
# ── Config (env-overridable) ──────────────────────────────────────── # ── Config (env-overridable) ────────────────────────────────────────
MAX_CONCURRENCY="${AGENT_QUEUE_MAX:-2}" MAX_CONCURRENCY="${AGENT_QUEUE_MAX:-3}"
DEFAULT_ENGINE="${AGENT_QUEUE_ENGINE:-devin}" DEFAULT_ENGINE="${AGENT_QUEUE_ENGINE:-devin}"
POLL_SECONDS="${AGENT_QUEUE_POLL:-3}" POLL_SECONDS="${AGENT_QUEUE_POLL:-3}"
# A running worker is flagged "stalled" if its log has not changed in this many # A running worker is flagged "stalled" if its log has not changed in this many