Skip to content

Include in-memory (sync match) backlog in ApproximateBacklogCount#10396

Draft
sivagirish81 wants to merge 1 commit into
temporalio:mainfrom
sivagirish81:issue-6760
Draft

Include in-memory (sync match) backlog in ApproximateBacklogCount#10396
sivagirish81 wants to merge 1 commit into
temporalio:mainfrom
sivagirish81:issue-6760

Conversation

@sivagirish81
Copy link
Copy Markdown
Contributor

@sivagirish81 sivagirish81 commented May 27, 2026

What changed?

Added in-memory sync-match backlog accounting for the new matcher so query and Nexus tasks waiting in taskPQ are included in task queue stats. Classic matcher is intentionally left unchanged.

Closes : #6760

Why?

Query and Nexus tasks can wait in memory while looking for a sync match and are not represented in DB backlog stats, so Describe could underreport backlog.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Potential risks

The change is scoped to the new matcher and only counts non-DB-backlog in-memory tasks to avoid double counting.

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.

Include in-memory (sync match) backlog in ApproximateBacklogCount

1 participant