Skip to content

Allow workers to configure their own max active tasks CONCOURSE_MAX_ACTIVE_TASKS - #9627

Merged
taylorsilva merged 7 commits into
masterfrom
worker-max-tasks
Jul 14, 2026
Merged

taylorsilva merged 7 commits into
masterfrom
worker-max-tasks

Conversation

@taylorsilva

Copy link
Copy Markdown
Member

Changes proposed by this PR

Adds a new worker flag --max-active-tasks/CONCOURSE_MAX_ACTIVE_TASKS that allows operators to specify the max active tasks for a worker, overriding the --max-active-tasks-per-worker defined on the web nodes.

Web nodes must be using the limit-active-tasks placement strategy and defined a --max-active-tasks-per-worker/CONCOURSE_MAX_ACTIVE_TASKS_PER_WORKER for this setting to have any effect on container placement.

@taylorsilva
taylorsilva requested a review from a team July 3, 2026 20:02
Value is saved to the db.Worker during registration and can be retrieved
when getting a worker from the db.

Signed-off-by: Taylor Silva <[email protected]>
makes it easier to find all the places the commands are used

Signed-off-by: Taylor Silva <[email protected]>
A worker's MaxActiveTasks takes precedence over the system configured
max tasks per worker.

Signed-off-by: Taylor Silva <[email protected]>
Signed-off-by: Taylor Silva <[email protected]>
@taylorsilva
taylorsilva merged commit 00c7c2b into master Jul 14, 2026
11 checks passed
@taylorsilva
taylorsilva deleted the worker-max-tasks branch July 14, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant