Skip to content

Fix hard coded token limit - #859

Merged
MarkDWilliams merged 1 commit into
masterfrom
task-retry-config
Jul 2, 2026
Merged

Fix hard coded token limit#859
MarkDWilliams merged 1 commit into
masterfrom
task-retry-config

Conversation

@EvanDietzMorris

@EvanDietzMorris EvanDietzMorris commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

We are working on tuning task concurrency and retry functionality. The default value for the ARS_EXPENSIVE_LIMIT env var, which controls the number of available tokens for concurrent tasks, was recently increased from 6 to 12, which is good, but in tr_sys/tr_ara/utils.py a call to expensive_section() still hard coded this limit to 6, ignoring the value set by the env var.

This PR removes that hardcoded value and renames the previous python constant used for this setting "DEFAULT_LIMIT" to a more explicit "ARS_EXPENSIVE_TOKEN_LIMIT". This still doesn't match the env var, which might be nice, but keeping the env var the same avoids breaking configs external to this repo (ie jenkins).

@MarkDWilliams
MarkDWilliams merged commit c87c130 into master Jul 2, 2026
1 check passed
@MarkDWilliams
MarkDWilliams deleted the task-retry-config branch July 2, 2026 18:21
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.

2 participants