Skip to content
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

Implement throttling options in concurrency extension #1270

Merged
merged 8 commits into from
Mar 18, 2024

Conversation

marckohlbrugge
Copy link
Contributor

@marckohlbrugge marckohlbrugge commented Mar 1, 2024

Initial MVP for at throttling extension. I'm not sure I'm qualified to take it the whole way as my understanding of Good Job and some of its architecture is very limited. But creating this PR by @bensheldon's request so we have a place to discuss this particular code.

Credit goes to Ben for his gist where this code is based on: https://gist.github.com/bensheldon/89f772eb8f55058e87959b008e5081b9

Also see #315 #1198

@bensheldon
Copy link
Owner

@marckohlbrugge Thank you so much for opening this! I'd like to make some tweaks to the interface for throttling. I can push those up and also fixup any of the other lint warnings.

@bensheldon
Copy link
Owner

bensheldon commented Mar 15, 2024

I really like this! I combined your throttle extension into the existing Concurrency extension.

I also discovered that Rail's TimeHelpers don't work the way I expected, so I replaced them with Timecop:

There is no way to just travel in time without also freezing it when using TimeHelpers.

I realize that Throttling isn't quite the same as Concurrency, but there was so much overlap in functionality when reusing the keys and all I figured it made sense to combine.

@bensheldon bensheldon changed the title Initial MVP for throttle extension (WIP) Implement throttling options in concurrency extension Mar 15, 2024
@bensheldon bensheldon added the enhancement New feature or request label Mar 15, 2024
@bensheldon bensheldon merged commit c4f14d2 into bensheldon:main Mar 18, 2024
20 checks passed
@marckohlbrugge marckohlbrugge deleted the throttle-extension branch March 18, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

2 participants