feat(core): make task concurrency limits configurable via env vars#8073
Open
marklester wants to merge 1 commit into
Open
feat(core): make task concurrency limits configurable via env vars#8073marklester wants to merge 1 commit into
marklester wants to merge 1 commit into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_LIMITandGARDEN_STATUS_CONCURRENCY_LIMIT— that override the per-action concurrency limits used byExecuteActionTask. 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.