Skip to content

Conversation

@shuangkun
Copy link
Member

Fix pagination logic to properly check for more workflows when there are many live workflows in the cluster. Previously, HasMoreWorkflows only checked the archive, ignoring live workflows.

  • Check if current offset+limit is still within live workflows range
  • If within live range, there are definitely more items
  • If beyond live range, check archive with adjusted offset
  • Fixes incorrect pagination when live workflows exceed offset+limit

Motivation

Modifications

Verification

Documentation

@shuangkun shuangkun force-pushed the fix/hasmore-workflows-consider-live branch from 87da3ce to b74143b Compare December 7, 2025 03:38
Fix pagination logic to properly check for more workflows when there are
many live workflows in the cluster. Previously, HasMoreWorkflows only
checked the archive, ignoring live workflows.

- Check if current offset+limit is still within live workflows range
- If within live range, there are definitely more items
- If beyond live range, check archive with adjusted offset
- Fixes incorrect pagination when live workflows exceed offset+limit

Signed-off-by: shuangkun <[email protected]>
@shuangkun shuangkun force-pushed the fix/hasmore-workflows-consider-live branch from b74143b to 57e0339 Compare December 7, 2025 04:18
@shuangkun
Copy link
Member Author

/retest

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