Skip to content

feat(core): make task concurrency limits configurable via env vars#8073

Open
marklester wants to merge 1 commit into
garden-io:0.13from
marklester:make-action-concurrency-limit-configurable
Open

feat(core): make task concurrency limits configurable via env vars#8073
marklester wants to merge 1 commit into
garden-io:0.13from
marklester:make-action-concurrency-limit-configurable

Conversation

@marklester

@marklester marklester commented May 13, 2026

Copy link
Copy Markdown

What this PR does / why we need it:

When testing on a multi-node cluster I noticed garden limits deploys to ~5 deploys at a time. Did some investigation and found that this value is hardcoded. This PR addresses this issue.

Adds two environment variables — GARDEN_EXECUTE_CONCURRENCY_LIMIT and GARDEN_STATUS_CONCURRENCY_LIMIT — that override the per-action concurrency limits used by ExecuteActionTask. When set, the env var takes precedence over the action-defined limit, which still falls back to the default of 10.

This lets operators tune task throughput in CI or constrained environments without requiring code changes to actions.

Add GARDEN_EXECUTE_CONCURRENCY_LIMIT and GARDEN_STATUS_CONCURRENCY_LIMIT
env vars to override the per-action concurrency limits used by
ExecuteActionTask. When set, the env var takes precedence over the
action-defined limit, which in turn falls back to the default of 10.
This lets operators tune task throughput without code changes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Affirm-Skill: apollo
Affirm-Skill: att-test
Affirm-Skill: buildkite-debug
Affirm-Skill: buildkite-retry-flaky-tests
Affirm-Skill: capture-context
Affirm-Skill: cmt-writer
Affirm-Skill: commit-and-push
Affirm-Skill: create-cmt-ticket
Affirm-Skill: export-conversation-record
Affirm-Skill: gather-best-practices
Affirm-Skill: mcp-debug
Affirm-Skill: save-output
Affirm-Skill: security-scanner-for-skill-md
Affirm-Skill: tickets-from-plan
Affirm-Skill: write-implementation-plan
@marklester marklester marked this pull request as ready for review May 13, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant