Fix throttling in matrix plugin#1352
Merged
caronc merged 2 commits intocaronc:masterfrom Jun 18, 2025
Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1352 +/- ##
=======================================
Coverage 99.38% 99.38%
=======================================
Files 162 162
Lines 21159 21160 +1
Branches 3804 3804
=======================================
+ Hits 21028 21029 +1
Misses 121 121
Partials 10 10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Owner
|
Thank you! Merged 🚀 |
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.
Description:
Related issue (if applicable): -
I noticed that in our project the automatic throttling after hitting the Matrix login rate limit did not work. This is an issue for us as long as the Apprise Persistent Storage is not working for the
apache-airflow-providers-apprisepackage (see apache/airflow#51102).There is also - in a separate commit - a small fix for a warning log message which confused me.
Sorry, I do not have time to look into test coverage...
Checklist
flake8)Testing
Anyone can help test this source code as follows:
With this PR, throttling works as expected:
Throttling works: We can log in with the first retry.
Without this PR:
Note, how the first throttling does not work: We are asked to throttle for 174 seconds but immediately POST another login request, without waiting.