Skip to content

Commit 9ee45e6

Browse files
theletterfclaude
andauthored
Give each sweep its own Copilot concurrency group (#127)
By default the gh-aw compiler injects `concurrency.group: "gh-aw-copilot-${{ github.workflow }}"` on the agent job of every Copilot-engine workflow, with `cancel-in-progress: true`. `github.workflow` resolves at workflow_call time to the *caller's* workflow name, so when the docs-quality-sweep orchestrator dispatches the seven sweeps in parallel they all end up in the same group named `gh-aw-copilot-Docs quality sweep`. As each agent job queues, the one currently running gets cancelled with annotation `Canceling since a higher priority waiting request for gh-aw-copilot-Docs quality sweep exists`. Override this per-source via `engine.concurrency` (documented at https://github.github.com/gh-aw/reference/concurrency/) so each sweep's agent job lands in its own group keyed on its own slug plus `github.run_id`. The seven groups are now mutually non-overlapping and each is also distinct across runs. Verified by recompiling and inspecting the lock files: each contains its own `group: "gh-aw-copilot-docs-<slug>-sweep-${{ github.run_id }}"`, and none of them keep the default `"gh-aw-copilot-${{ github.workflow }}"`. Refs the cancellation observed in elastic/docs-content-internal/actions/runs/25368098299 (5 of 7 agent jobs cancelled within 50s of each other; only `typos` finished because its agent step was short enough to win the race). Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d124df8 commit 9ee45e6

14 files changed

Lines changed: 119 additions & 98 deletions

.github/workflows/gh-aw-docs-applies-to-sweep.lock.yml

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/gh-aw-docs-applies-to-sweep.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ imports:
1515
- elastic/elastic-docs-skills/skills/authoring/applies-to-tagging
1616
engine:
1717
id: copilot
18+
concurrency:
19+
group: "gh-aw-copilot-docs-applies-to-sweep-${{ github.run_id }}"
20+
cancel-in-progress: false
1821
on:
1922
workflow_call:
2023
inputs:

.github/workflows/gh-aw-docs-coherence-sweep.lock.yml

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/gh-aw-docs-coherence-sweep.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ imports:
1313
- gh-aw-fragments/mcp-pagination.md
1414
engine:
1515
id: copilot
16+
concurrency:
17+
group: "gh-aw-copilot-docs-coherence-sweep-${{ github.run_id }}"
18+
cancel-in-progress: false
1619
on:
1720
workflow_call:
1821
inputs:

.github/workflows/gh-aw-docs-frontmatter-sweep.lock.yml

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/gh-aw-docs-frontmatter-sweep.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ imports:
1717
- elastic/elastic-docs-skills/skills/authoring/frontmatter-description
1818
engine:
1919
id: copilot
20+
concurrency:
21+
group: "gh-aw-copilot-docs-frontmatter-sweep-${{ github.run_id }}"
22+
cancel-in-progress: false
2023
on:
2124
workflow_call:
2225
inputs:

0 commit comments

Comments
 (0)