Dropping old events

オープン
#26 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python
領域
backend

調査の方向性

Read the max_history_size section in README.md and the event_bus.py paths shown in the traceback, then reproduce the limit-exceeded behavior. Compare the documented setting with the exception's suggested configuration and verify the corrected behavior for dropping old events. Done means the documentation, runtime behavior, and configuration interface agree.

索引モデルが issue の本文から書いたものです。

説明

When dispatching events to exceed the max size, the following occurs:

2026-03-25 11:56:12,915 - asyncio - ERROR - Exception in callback EventBus.dispatch()
handle: <Handle EventBus.dispatch()>
Traceback (most recent call last):
  File "/usr/lib/python3.13/asyncio/events.py", line 89, in _run
    self._context.run(self._callback, *self._args)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cs1822/.local/lib/python3.13/site-packages/bubus/event_bus.py", line 1221, in dispatch
    return self.emit(event)
           ~~~~~~~~~^^^^^^^
  File "/home/cs1822/.local/lib/python3.13/site-packages/bubus/event_bus.py", line 1161, in emit
    raise RuntimeError(
    ...<2 lines>...
    )
RuntimeError: io#00ca🟢(queue=0 active=0 history=10 handlers=2) history limit reached (10/10); set event_history.max_history_drop=True to drop old history instead of rejecting new events

However, this is contradictory to the README.md, which clearly states:

When max_history_size is set, EventBus automatically removes old events when the limit is exceeded

Additionally, following the exception's suggestion:

    self.event_bus.event_history.max_history_drop=True
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'max_history_drop'

The documentation and exceptions both contradict each other, and neither solution they propose works.

主要言語
Python
スター
131
フォーク
28
平均マージ
18分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

browser-use/bubus のほかの issue

browser-use/bubus の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。