Skip to content

fix(server): include tasks stamped at the statusTimestampAfter bound - #445

Merged
muscariello merged 1 commit into
stack/05-subscribe-interrupted-taskfrom
stack/06-list-tasks-timestamp-inclusive
Nov 2, 2026
Merged

muscariello merged 1 commit into
stack/05-subscribe-interrupted-taskfrom
stack/06-list-tasks-timestamp-inclusive

Conversation

@muscariello

Copy link
Copy Markdown
Member

Fixes #413. Replaces #414. Stacked on #444: review only the last commit.

Cause: the proto defines statusTimestampAfter as "greater than or equal to", but InMemoryTaskStore::list skipped a task when timestamp <= after, so a task stamped exactly at the bound was dropped.

Fix: the skip predicate is now timestamp < after, so the bound itself is kept. The comment above it says why.

Tests: test_list_filter_by_status_timestamp_after now includes a task stamped exactly at the cutoff and expects it in the result.

Unproven: that the test fails on main was not run locally. CI is the check.

@muscariello
muscariello requested a review from a team as a code owner November 1, 2026 21:38
@muscariello
muscariello added this pull request to stack #442 November 1, 2026 21:39
@codecov

codecov Bot commented Nov 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

The proto defines statusTimestampAfter as "greater than or equal to", but
InMemoryTaskStore dropped a task whose status timestamp equalled the bound.
A caller that polls with the timestamp of the last task it saw never gets
that task back. The filter now keeps the bound itself.

Signed-off-by: gulldan <[email protected]>
@muscariello
muscariello force-pushed the stack/06-list-tasks-timestamp-inclusive branch from 900ae83 to 44ec2fd Compare November 2, 2026 14:28
@muscariello
muscariello removed this pull request from stack #442 November 2, 2026 15:00
@muscariello
muscariello added this pull request to stack #456 November 2, 2026 15:01
@muscariello
muscariello added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 33d5289 Nov 2, 2026
43 of 45 checks passed
@muscariello
muscariello deleted the stack/06-list-tasks-timestamp-inclusive branch November 2, 2026 17:44
@github-actions github-actions Bot mentioned this pull request Nov 2, 2026
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.

[Bug]: ListTasks statusTimestampAfter excludes a task stamped exactly at the bound

3 participants