Skip to content

Commit bd03fe3

Browse files
authored
perf(queue): reserve four global exact-review slots
Raises global exact-review admission to 12 while keeping per-target admission at 8, preserving headroom for other repositories. Targeted tests, limits, formatting, and autoreview passed; remote pnpm check passed.
1 parent 59f4d69 commit bd03fe3

8 files changed

Lines changed: 13 additions & 12 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ workers. Imported gitcrawl cluster repair allows 2 live workers by default.
638638
Exact-item review, repair, and issue implementation are priority work; normal
639639
review, hot intake, and commit review are background work and automatically
640640
yield when priority work is active. Exact-item runs use a durable Worker queue
641-
that coalesces item deliveries, leases at most 8 concurrent reviews, and admits
641+
that coalesces item deliveries, leases at most 12 concurrent reviews, and admits
642642
up to 8 active exact reviews per target repository. Other lanes retain the
643643
checked-in 32-worker scheduling model.
644644
Use `workers.max` first when turning total Codex usage up or down; use

‎config/automation-limits.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"lanes": {
99
"exact_review": {
10-
"max_concurrent": 8
10+
"max_concurrent": 12
1111
},
1212
"assist": {
1313
"max": 10

‎dashboard/worker.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const CLOSED_STATS_PAGE_LIMIT = 10;
7171
const DEFAULT_CLAWSWEEPER_BOT_LOGINS = ["clawsweeper[bot]", "openclaw-clawsweeper[bot]"];
7272
const GITHUB_TIMEOUT_MS = 4500;
7373
const DEFAULT_STALE_QUEUED_WORKFLOW_MS = 6 * 60 * 60 * 1000;
74-
const DEFAULT_EXACT_REVIEW_QUEUE_MAX_CONCURRENT = 8;
74+
const DEFAULT_EXACT_REVIEW_QUEUE_MAX_CONCURRENT = 12;
7575
const DEFAULT_EXACT_REVIEW_TARGET_MAX_CONCURRENT = 8;
7676
const DEFAULT_EXACT_REVIEW_DISPATCH_LEASE_MS = 10 * 60 * 1000;
7777
const DEFAULT_EXACT_REVIEW_EXECUTION_LEASE_MS = 130 * 60 * 1000;

‎dashboard/wrangler.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ AUTOMERGE_CACHE_TTL_SECONDS = "300"
3939
RECENT_CLOSED_CACHE_TTL_SECONDS = "300"
4040
CACHE_TTL_SECONDS = "20"
4141
INCLUDE_CI_STATUS = "1"
42-
EXACT_REVIEW_QUEUE_MAX_CONCURRENT = "8"
42+
EXACT_REVIEW_QUEUE_MAX_CONCURRENT = "12"
4343
EXACT_REVIEW_TARGET_MAX_CONCURRENT = "8"
4444
EXACT_REVIEW_DISPATCH_LEASE_MS = "600000"
4545
EXACT_REVIEW_EXECUTION_LEASE_MS = "7800000"

‎docs/limits.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The mental model:
3737
| `workers.reserve_for_interactive` | 8 | Worker slots background lanes leave open for exact/manual/urgent work. |
3838
| `workers.expansion_reserve` | 12 | Extra slots background lanes leave open for independently planned matrix expansion. |
3939
| `workers.minimum_background` | 4 | Target floor for background progress when enough global capacity is available. |
40-
| `lanes.exact_review.max_concurrent` | 8 | Maximum concurrent exact-item review workflow runs admitted to Codex. |
40+
| `lanes.exact_review.max_concurrent` | 12 | Maximum concurrent exact-item review workflow runs admitted to Codex. |
4141
| `lanes.assist.max` | 10 | Maximum concurrent lightweight assist jobs. |
4242
| `lanes.repair.cluster_max_live_runs` | 2 | Default live repair workflow cap for imported gitcrawl cluster dispatches. |
4343

@@ -52,7 +52,7 @@ by default.
5252

5353
| Name | Current | Meaning |
5454
| --- | ---: | --- |
55-
| `exact_review.concurrent_max` | 8 | Exact-item review admission cap, clamped to `workers.max`. |
55+
| `exact_review.concurrent_max` | 12 | Exact-item review admission cap, clamped to `workers.max`. |
5656
| `assist.default` | 10 | Maintainer assist job cap. |
5757
| `review_shards.normal_default` | 22 | Quiet-system normal review shard ceiling. |
5858
| `review_shards.normal_active_floor` | 9 | Minimum active normal review shards to keep queued for `openclaw/openclaw`. |
@@ -114,9 +114,10 @@ Exact-item webhooks are admitted by the dashboard Worker's durable
114114
deliveries by repository and item number, so a new webhook updates the latest
115115
desired review rather than consuming another runner. Only
116116
`EXACT_REVIEW_QUEUE_MAX_CONCURRENT` leased items may dispatch an exact-review
117-
workflow at once; the default is 8. `EXACT_REVIEW_TARGET_MAX_CONCURRENT` bounds
117+
workflow at once; the default is 12. `EXACT_REVIEW_TARGET_MAX_CONCURRENT` bounds
118118
how many of those slots one target repository may consume; production sets it
119-
to 8 so an OpenClaw backlog can drain without increasing the global queue cap.
119+
to 8 so other target repositories retain four global slots during an OpenClaw
120+
backlog drain.
120121

121122
Each dispatched workflow claims its opaque lease before checkout. Duplicate
122123
dispatches and stale workflows cannot claim the same lease, and a completion

‎docs/live-dashboard.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,6 @@ Do not move these into the dashboard:
160160

161161
The dashboard Worker owns durable exact-review admission only: it deduplicates
162162
webhook deliveries, coalesces each repository/item pair, and leases at most
163-
eight Actions executors. It does not decide review outcomes or perform target
163+
twelve Actions executors. It does not decide review outcomes or perform target
164164
repository mutations. GitHub Actions remains the executor and the existing
165165
review/apply safety model remains unchanged.

‎docs/target-dispatcher.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ endpoint is `/github/webhook`; the local equivalent is
239239
target installation token for acknowledgement/comment reactions, mints the
240240
`openclaw/clawsweeper` installation token for repository dispatch, and queues
241241
exact `clawsweeper_comment` or `clawsweeper_item` work. The durable Worker
242-
queue dispatches at most 8 leased exact-review executors, with up to 8 active
242+
queue dispatches at most 12 leased exact-review executors, with up to 8 active
243243
reviews per target repository. Keep the Actions
244244
dispatcher installed as a compatibility fallback; its legacy dispatch is
245245
bridged into the same queue before Codex starts.

‎test/dashboard-worker.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import {
1414
triageRoutingGroupsForLabels,
1515
} from "../dashboard/triage-routing-groups.ts";
1616

17-
test("exact-review queue defaults to 8 of the 32 global workers", () => {
18-
assert.equal(exactReviewQueueCapacity({}), 8);
17+
test("exact-review queue defaults to 12 of the 32 global workers", () => {
18+
assert.equal(exactReviewQueueCapacity({}), 12);
1919
assert.equal(exactReviewQueueCapacity({ EXACT_REVIEW_QUEUE_MAX_CONCURRENT: "32" }), 32);
2020
assert.equal(exactReviewQueueCapacity({ EXACT_REVIEW_QUEUE_MAX_CONCURRENT: "100" }), 32);
2121
});

0 commit comments

Comments
 (0)