[BUG] Progress polling does not detect terminal events on subsequent pages
I maintainer di solito rispondono entro 4 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- python, react, typescript
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Python
- Stelle
- 31
- Fork
- 92
- Merge medio
- 4g 9h
- PR unite (30g)
- 29
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CCExtractor/sample-platform
-
[BUG] Unhandled AttributeError on empty database queries for GeneralData and CCExtractorVersionForse già presa @Aspirant200715 l’ha presa 9 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
CCExtractor/sample-platform#1275 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
[BUG] `TypeError: 'ContentFile' object is not subscriptable` in mod_upload when creating GitHub issueForse già presa @garv-sanveria l’ha presa 16 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 30/100
CCExtractor/sample-platform#1261 ·
I maintainer di solito rispondono entro 4 giorni
-
[BUG] Missing timeouts on 5 outbound HTTP calls outside mod_ci (follow-up to #943)Forse già presa @devnishantt l’ha presa 54 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 84/100
CCExtractor/sample-platform#1192 · 2 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
[Feature Request] Improve comparison algorithm to handle frame offsets intelligently (GSoC Qualification)Forse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
CCExtractor/sample-platform#1079 ·
I maintainer di solito rispondono entro 4 giorni
-
[BUG] never-worked baseline handling is not fully integrated into trusted CI reportingForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
CCExtractor/sample-platform#1057 · 2 commenti ·
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di CCExtractor/sample-platform
Issue simili
-
[Bug]: DoubleMLData.from_arrays checks the treatment d with force_all_x_finite instead of force_all_d_finiteForse già presa @leninworld l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
DoubleML/doubleml-for-py#471 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
python-pillow/Pillow#10590 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
BUG: ZarrTrace fails in init_trace for models with datetime coordinates (object dtype coord array)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 2 giorni