Skip to content

fix: correct EventBus capacity accounting#29

Draft
MagMueller wants to merge 1 commit into
mainfrom
fix/eventbus-capacity-accounting
Draft

fix: correct EventBus capacity accounting#29
MagMueller wants to merge 1 commit into
mainfrom
fix/eventbus-capacity-accounting

Conversation

@MagMueller

@MagMueller MagMueller commented Jul 23, 2026

Copy link
Copy Markdown

Summary

  • count queued and processing events as non-overlapping capacity inputs
  • report queue saturation with accurate queue and processing counts
  • replace the misleading capacity regression with a focused 50-event queue test

Tests

  • uv run pytest -q tests/
  • uv run ruff check .
  • uv run ruff format --check .
  • uv run pyright

Summary by cubic

Fixes EventBus capacity checks by separating queued from processing events and enforcing a queue‑full condition to prevent premature capacity errors.

  • Bug Fixes
    • Compute pending as queue size + started events only; stop double counting queued items in history.
    • Raise capacity errors with a clear reason ('100 max' or 'queue full') and report separate Queue and Processing counts.
    • Replace the 100-limit stress test with a focused 50-event queue saturation test that validates accurate counts and messaging.

Written for commit 3ab4c41. Summary will update on new commits.

Review in cubic

@claude

claude Bot commented Jul 23, 2026

Copy link
Copy Markdown

Claude encountered an error —— View job


I'll analyze this and get back to you.

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