Skip to content

Exclude WAITFOR sessions from long-running query alerts#208

Merged
erikdarlingdata merged 1 commit intodevfrom
fix/exclude-cdc-long-running-151
Feb 20, 2026
Merged

Exclude WAITFOR sessions from long-running query alerts#208
erikdarlingdata merged 1 commit intodevfrom
fix/exclude-cdc-long-running-151

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • CDC capture agents use waitfor delay @waittime and run indefinitely by design — these were triggering false long-running query alerts every 5 minutes ([BUG] PerfMonLite reports long-running CDC sessions as being a problem #151)
  • Service Broker listeners use waitfor receive — same pattern, also intentionally long-running
  • Adds NOT LIKE filters for both patterns in Dashboard (live DMV query) and Lite (DuckDB alert query)

Fixes #151.

Test plan

  • Build succeeds for both Dashboard and Lite
  • Verify long-running query alerts still fire for actual long-running queries
  • If CDC is available: verify CDC capture agent no longer triggers tray warnings

🤖 Generated with Claude Code

CDC capture agents use `waitfor delay @waittime` and run indefinitely by design.
Service Broker listeners use `waitfor receive`. Neither should trigger long-running
query alerts.

Adds NOT LIKE filters for both patterns in Dashboard (live DMV query) and Lite
(DuckDB alert query).

Fixes #151.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit e68b3cc into dev Feb 20, 2026
3 checks passed
@erikdarlingdata erikdarlingdata deleted the fix/exclude-cdc-long-running-151 branch February 20, 2026 14:21
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.

1 participant