[BUG] Progress polling does not detect terminal events on subsequent pages
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python, react, typescript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 31
- Fork
- 92
- Merge trung bình
- 4 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 29
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CCExtractor/sample-platform
-
[BUG] Unhandled AttributeError on empty database queries for GeneralData and CCExtractorVersionCó thể đã có người làm @Aspirant200715 đã nhận 9 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
CCExtractor/sample-platform#1275 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[BUG] `TypeError: 'ContentFile' object is not subscriptable` in mod_upload when creating GitHub issueCó thể đã có người làm @garv-sanveria đã nhận 16 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 30/100
CCExtractor/sample-platform#1261 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[BUG] Missing timeouts on 5 outbound HTTP calls outside mod_ci (follow-up to #943)Có thể đã có người làm @devnishantt đã nhận 54 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 84/100
CCExtractor/sample-platform#1192 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[Feature Request] Improve comparison algorithm to handle frame offsets intelligently (GSoC Qualification)Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
CCExtractor/sample-platform#1079 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[BUG] never-worked baseline handling is not fully integrated into trusted CI reportingCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
CCExtractor/sample-platform#1057 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của CCExtractor/sample-platform
Issue tương tự
-
[Bug]: DoubleMLData.from_arrays checks the treatment d with force_all_x_finite instead of force_all_d_finiteCó thể đã có người làm @leninworld đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
DoubleML/doubleml-for-py#471 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
python-pillow/Pillow#10590 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
BUG: ZarrTrace fails in init_trace for models with datetime coordinates (object dtype coord array)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 2 ngày