Dropping old events
まだ誰も着手していません。
評価
調査の方向性
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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
browser-use/bubus のほかの issue
-
browser-use/bubus#46 ·
-
Dispatch after `stop()` restarts `_run_loop` on the shut-down queue and spins a CPU core forever対応中かも @zwk110 が 46 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 54/100
browser-use/bubus#38 ·
-
Handler timeout leaves zombie threads (can't cancel blocking sync code)再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
browser-use/bubus#31 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
browser-use/bubus#20 · コメント 3 件 ·
-
Add support for unsubscribing after using `EventBus.on`対応中かも @HankGrimm が 86 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
browser-use/bubus#5 · コメント 6 件 ·
browser-use/bubus の issue をすべて見る
似ている issue
-
docs(contributing): the two things that silently block a PR対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンavailable documentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 95/100
Nixitov/Riptide-Native#944 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
JTHCode/secretguard#24 ·
メンテナーはふだん 1 日以内に返信
-
area: middleware documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
omarelshamy25x/shamy-hijri#63 ·
メンテナーはふだん 1 日以内に返信