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

How do I set maxDispatchesPerSecond when running as a docker container? #58

Open
atrauzzi opened this issue Feb 26, 2022 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@atrauzzi
Copy link

If I'm running as a docker container, is there any way to set maxDispatchesPerSecond per-queue?

@aertje aertje added the enhancement New feature or request label Mar 5, 2022
@aertje
Copy link
Owner

aertje commented Mar 5, 2022

Hi @atrauzzi - I guess you mean on startup? No that's not possible at the moment, you'll need to create the queues using a client for that.
I'll leave this here as a future feature request.

@davidspiess
Copy link

Also looking for this. We define our queues in docker-compose and there is no way to set maxDispatchesPerSecond.
If i spawn 200 tasks, they all get handled concurrently. which in my case overloads the API.

@yiweig
Copy link

yiweig commented Jul 18, 2024

@atrauzzi @davidspiess if you're still looking for a solution, take a look at #101 (comment) ? I was also trying to figure this out -- it doesn't look like this is possible from this emulator without a PR, but it is doable if you have a separate client and separately create a queue.

We use this emulator in docker compose as well and I threw in the above code snippet in our app init code for local dev and got max dispatches (along with other retry and rate limiting configs) working

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
None yet
Development

No branches or pull requests

4 participants