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

Fix - Query - Chunked - Resolved infinite loop when start chunk > 1 #477

Conversation

NeekTheNook
Copy link
Contributor

Resolved an issue when the start chunks value was > 1 an infinite loop would be created as handled messages would always be less than available messages.

Added more safety around input arguments, forcing minimums of 1 for both $chunk_size and $start_chunk.

Resolved an issue when the start chunks value was > 1 an infinite loop would be created as handled messages would always be less than available messages when chunks are skipped.

Added more safety around input arguments, forcing minimums of 1 for both $chunk_size and $start_chunk.
@NeekTheNook
Copy link
Contributor Author

Naturally the additional safety (minimums for arguments) might be a breaking change for some use cases, so that part is at the maintainers discretion. Absolutely happy to refactor if that is a problem :)

@NeekTheNook NeekTheNook changed the title Query - Chunked - Resolved infinite loop when start chunk > 1 Fix - Query - Chunked - Resolved infinite loop when start chunk > 1 Feb 28, 2024
@Webklex
Copy link
Owner

Webklex commented Apr 11, 2024

Hi @NeekTheNook ,
many thanks for your suggested improvements and your pull request!

Best regards & happy coding,

@Webklex Webklex merged commit 61e0f1a into Webklex:master Apr 11, 2024
3 checks passed
@stevebauman stevebauman mentioned this pull request Jan 30, 2025
18 tasks
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