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

Time based Queue. Handling X jobs per minute. #453

Open
waseemhnyc opened this issue May 8, 2024 · 1 comment
Open

Time based Queue. Handling X jobs per minute. #453

waseemhnyc opened this issue May 8, 2024 · 1 comment

Comments

@waseemhnyc
Copy link

How could you limit the number of jobs you are processing per a set time frame.
For example I'd only like to have 60 jobs run per minute.
This is helpful if you'd like to do something where you track the number of API calls you are making to avoid running in to rate limiting issues.

@JonasKs
Copy link
Sponsor Collaborator

JonasKs commented May 10, 2024

There's a few ways to solve this, either by limiting a worker max concurrent jobs, or by using libraries such as redis-rate-limiters.

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

No branches or pull requests

2 participants