Skip to content

fix(RangeCompleteHistoryTask): fix infinite loop when page size provided is <= 0#7472

Merged
fimanishi merged 1 commit intocadence-workflow:masterfrom
fimanishi:fix-infinite-loop-when-pagesize-is-zero-RangeCompleteHistoryTaskRequest
Nov 25, 2025
Merged

fix(RangeCompleteHistoryTask): fix infinite loop when page size provided is <= 0#7472
fimanishi merged 1 commit intocadence-workflow:masterfrom
fimanishi:fix-infinite-loop-when-pagesize-is-zero-RangeCompleteHistoryTaskRequest

Conversation

@fimanishi
Copy link
Member

@fimanishi fimanishi commented Nov 22, 2025

#7470

What changed?
Add a check to exit completion loop if pageSize is less or equal to 0.

Why?
When pageSize/batchSize is set to zero it's an unbounded request for completion in sql dbs. It's not used by non sql dbs. That means that we don't need to execute it again within the same request.

How did you test it?
Unit test

Potential risks

Release notes

Documentation Changes

…ded is <= 0

Signed-off-by: fimanishi <fimanishi@gmail.com>
@fimanishi fimanishi merged commit a9c3a11 into cadence-workflow:master Nov 25, 2025
44 checks 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