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

Updated Batching - Support Chunked Batch Size #2957

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

bcameron1231
Copy link
Collaborator

Category

  • Bug fix?

What's in this Pull Request?

Our current implementation of batching supports a maxRequests props, which splits up the batching into chunks based on that maxRequest value specified. However, it does not work. When the count of requests does not equal the maxRequests value, batching will fail to return the promise.

I've updated this, to keep track of indexes on the chunks to properly resolve() the promises we've added to our list of requests. I've removed some additional timeouts and promise returns, in favor of the single promise.all

@bcameron1231 bcameron1231 added this to the 3.24.0 milestone Mar 7, 2024
@patrick-rodgers patrick-rodgers merged commit a49b2df into pnp:version-3 Mar 8, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants