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

limit batch size for asynq.BatchBase queries? #114

Open
lambdaq opened this issue Apr 18, 2022 · 1 comment
Open

limit batch size for asynq.BatchBase queries? #114

lambdaq opened this issue Apr 18, 2022 · 1 comment

Comments

@lambdaq
Copy link

lambdaq commented Apr 18, 2022

Hi,

When subclassing asynq.BatchBase is it possible to specify batch size?

e.g. limit 1000 items per get_multi command, otherwise the response would be too big and will timeout sometimes.

@JelleZijlstra
Copy link
Collaborator

It's not supported in asynq itself. In our internal code we split up huge batches inside the _flush implementation. I agree it would be a useful feature for asynq itself to add.

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