Skip to content

unstucking the rate limit status - #172

Merged
tomellm merged 1 commit into
mainfrom
tom/#170-unstucking-ratelimitstate
May 29, 2024
Merged

tomellm merged 1 commit into
mainfrom
tom/#170-unstucking-ratelimitstate

Conversation

@tomellm

@tomellm tomellm commented May 29, 2024

Copy link
Copy Markdown
Contributor

#170 Before the problem was that the status could only update when requests where beeing made meaning that in the case where all requests were stopped because the status changed to CRITICAL for example it would never update.

Now I have created a control task that runs every so often (default 5 mins) and checks if requests have been made in that timeframe. If that is not the case then it lowers the status by one. (Consider that since the status is an optional and empty in the case of a limit await this lowering by one might actually not do anything)

@henrybley henrybley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor fix please

Comment thread src/main/resources/application.yml Resolved
Before the problem was that the status could only update when requests where beeing made meaning
that in the case where all requests were stopped because the status changed to CRITICAL for
example it would never update.

Now I have created a control task that runs every so often (default 5 mins) and checks if
requests have been made in that timeframe. If that is not the case then it lowers the status
by one. (Consider that since the status is an optional and empty in the case of a limit await
this lowering by one might actually not do anything)
@tomellm
tomellm force-pushed the tom/#170-unstucking-ratelimitstate branch from cb316bf to ee1f64c Compare May 29, 2024 13:09
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
73.1% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@henrybley henrybley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@tomellm
tomellm merged commit 126e483 into main May 29, 2024
@tomellm
tomellm deleted the tom/#170-unstucking-ratelimitstate branch May 29, 2024 13:13
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