-
-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Process Repeaters, Part 1 #35033
Open
kaapstorm
wants to merge
38
commits into
master
Choose a base branch
from
nh/iter_repeaters_1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Process Repeaters, Part 1 #35033
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
50c848a
Add `PROCESS_REPEATERS` toggle
kaapstorm 0db6a6c
`process_repeaters()` task
kaapstorm e36296c
`get_repeater_lock()`
kaapstorm aeb10ba
`iter_ready_repeater_ids_once()`
kaapstorm 01e4bc7
Skip rate-limited repeaters
kaapstorm db2fec2
`process_repeater()` task
kaapstorm 85b952e
Add tests
kaapstorm c28c11b
`Repeater.max_workers` field
kaapstorm d8d9642
Index fields used by `RepeaterManager.all_ready()`
kaapstorm 48c3d7c
Use quickcache. Prefilter enabled domains.
kaapstorm 418ed3a
Check randomly-enabled domains
kaapstorm 85bbfa3
Forward new records for synchronous case repeaters
kaapstorm d1119bb
Add explanatory docstrings and comments
kaapstorm 03b26cf
get_redis_lock() ... acquire(): No TypeError ?!
kaapstorm de27ba0
Drop unnecessary `iter_domain_repeaters()`
kaapstorm 4955ef4
Don't quickcache `domain_can_forward_now()`
kaapstorm 59aae71
Migration to create indexes concurrently
kaapstorm f40e6f4
Merge branch 'master' into nh/iter_repeaters_1
orangejenny b70fc52
Add comment
kaapstorm 7e65b3b
Don't squash BaseExceptions
kaapstorm 4c41896
Drop timeout for `process_repeater_lock`.
kaapstorm 30d4a6f
Add metric for monitoring health
kaapstorm fc0f174
Merge branch 'master' into nh/iter_repeaters_1
kaapstorm e32b465
Resolve migration conflict, fix index
kaapstorm e3bcd74
Fix metric
kaapstorm efc4dde
Change indexes
kaapstorm bd37a00
Add one more index. Use UNION ALL queries.
kaapstorm a448b9e
Don't report attempt too soon
kaapstorm 4321fb7
Add metrics
kaapstorm 74137f9
Improve backoff logic
kaapstorm 968a922
Update comments
kaapstorm 4fd14a0
Show "Next attempt at" in Forwarders page
kaapstorm 07320b9
Merge branch 'master' into nh/iter_repeaters_1
kaapstorm b1eb171
Fixes migration
kaapstorm 2463348
Merge remote-tracking branch 'origin/master' into nh/iter_repeaters_1
kaapstorm 8a7f343
Add comment on other `True` return value
kaapstorm 0f72ba9
Count repeater backoffs
kaapstorm 7f18e52
Add documentation
kaapstorm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could there be a race condition (resulting in a flaky test) if something took an extra second or two (like garbage collection) between when
repeat_record
is created and when_get_wait_duration_seconds
is run? Seems unlikely, but not impossible. Maybe consider using something likefreezegun.freeze_time
?The same applies to other tests in this class as well.