[BUG] Progress polling does not detect terminal events on subsequent pages
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python, react, typescript
調査の方向性
Read the progress endpoint in mod_api/routes/runs.py, the request helper in web/src/lib/api.ts, and the useRunProgress hook. Trace how pagination.next_offset and terminal events are handled, then run or extend the 51 event reproduction described in the issue. Done when polling detects completed or canceled on later pages without duplicates or unnecessary requests.
索引モデルが issue の本文から書いたものです。
説明
Description
The frontend progress polling hook appears to consume only the first page of progress events returned by the backend API.
The backend paginates progress events, returning 50 events per page by default. However, the frontend does not appear to follow pagination.next_offset when retrieving progress events.
As a result, if a terminal event such as completed or canceled appears on a subsequent page, the frontend may never detect it and can continue polling indefinitely.
Steps to Reproduce
- Configure a run with more than 50 progress events.
- Ensure the terminal
completedevent appears after the first 50 events. - Open the run details page.
- Observe the frontend progress polling behavior.
Expected Behavior
The frontend should consume all relevant progress pages and detect terminal events regardless of which page contains them.
Polling should stop when a terminal event (completed or canceled) is detected.
Actual Behavior
The frontend consumes only the first page of progress events.
If the terminal event appears on a subsequent page, it is not detected, and polling continues.
Investigation Details
The issue appears to involve:
- Backend:
mod_api/routes/runs.py— progress endpoint and pagination. - Frontend:
web/src/lib/api.ts— progress API request. - Frontend:
useRunProgresshook — polling and terminal-state detection.
An isolated reproduction using 51 events showed:
- Terminal event within the first 50 events: detected correctly.
- Terminal event at position 51: not detected; polling continues.
This reproduction used an isolated fixture and does not establish that a production run has encountered the issue.
Suggested Direction
Consider following pagination.next_offset when fetching progress events, ensuring that terminal events on subsequent pages are detected without introducing duplicate events or unnecessary API requests.
I would appreciate maintainer confirmation that this behavior is unintended before proceeding with an implementation.
Environment
- Repository: CCExtractor Sample Platform
- API:
/api/v1/runs/{run_id}/progress - Frontend: React / TypeScript
- 主要言語
- Python
- スター
- 31
- フォーク
- 92
- 平均マージ
- 4日 9時間
- マージ済み PR(30日)
- 29
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CCExtractor/sample-platform のほかの issue
-
[BUG] Unhandled AttributeError on empty database queries for GeneralData and CCExtractorVersion対応中かも @Aspirant200715 が 9 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
CCExtractor/sample-platform#1275 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
[BUG] `TypeError: 'ContentFile' object is not subscriptable` in mod_upload when creating GitHub issue対応中かも @garv-sanveria が 16 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 30/100
CCExtractor/sample-platform#1261 ·
メンテナーはふだん 4 日以内に返信
-
[BUG] Missing timeouts on 5 outbound HTTP calls outside mod_ci (follow-up to #943)対応中かも @devnishantt が 54 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 84/100
CCExtractor/sample-platform#1192 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
[Feature Request] Improve comparison algorithm to handle frame offsets intelligently (GSoC Qualification)再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
CCExtractor/sample-platform#1079 ·
メンテナーはふだん 4 日以内に返信
-
[BUG] never-worked baseline handling is not fully integrated into trusted CI reporting再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
CCExtractor/sample-platform#1057 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
CCExtractor/sample-platform の issue をすべて見る
似ている issue
-
[Bug]: DoubleMLData.from_arrays checks the treatment d with force_all_x_finite instead of force_all_d_finite対応中かも @leninworld が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
DoubleML/doubleml-for-py#471 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
python-pillow/Pillow#10590 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
BUG: ZarrTrace fails in init_trace for models with datetime coordinates (object dtype coord array)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 2 日以内に返信