Skip to content

feat(queue): Fix pagination issues with big task groups#8324

Merged
lotas merged 1 commit intomainfrom
feat/8323-list-task-group-pagination-fix
Mar 2, 2026
Merged

feat(queue): Fix pagination issues with big task groups#8324
lotas merged 1 commit intomainfrom
feat/8323-list-task-group-pagination-fix

Conversation

@lotas
Copy link
Contributor

@lotas lotas commented Feb 27, 2026

What happened is that some very large Task Groups would return duplicate overlapping tasks in listTaskGroup response with pagination, while hiding some other tasks from the response.

Fixes #8323

@lotas lotas requested a review from a team as a code owner February 27, 2026 12:54
@lotas lotas requested review from matt-boris and petemoore and removed request for a team February 27, 2026 12:54
What happened is that some very large Task Groups would return duplicate
overlapping tasks in listTaskGroup response with pagination, while
hiding some other tasks from the response.

Fixes #8323
@lotas lotas force-pushed the feat/8323-list-task-group-pagination-fix branch from ab95b09 to 224fa9c Compare February 27, 2026 14:23
version: 122
description: Fix listTaskGroup pagination stability by adding ORDER BY task_id
methods:
get_tasks_by_task_group_projid:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this fine to do? Overwrite the current db method? I thought typically we just add some incremented counter suffix?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we change the name when signature changes - either arguments change or resulting table. Here everything stays the same, just the ORDER is added, so we didn't change the signature, just the internals :) No clients would suffer from this change

Copy link
Contributor

@matt-boris matt-boris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, so long as overwriting the db method is ok :)

@lotas lotas merged commit a722cfc into main Mar 2, 2026
73 checks passed
@lotas lotas deleted the feat/8323-list-task-group-pagination-fix branch March 2, 2026 14:34
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.

Task doesn't appear on the task group page

2 participants