Map Analysis continues polling after a background job fails
Los mantenedores suelen responder en 1 día
@amantebriwal4321 ya está trabajando en esto.
Desde el 9/11/2026.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 84/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
- Área
- frontend
Línea de trabajo
Empieza en application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx y lee el efecto de sondeo y su manejador de errores. Reproduce el fallo haciendo que un trabajo en segundo plano de Map Analysis devuelva un error; luego confirma que se borra el ID del trabajo y que la carga termina mientras el error sigue visible. Añade una prueba de regresión para la ruta de error y verifica que el sondeo se detiene.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
The Map Analysis frontend continues polling /rest/v1/ma_job_results after a background job has reached a terminal failed state.
Steps to reproduce
- Open Map Analysis.
- Select two standards that require a background calculation.
- Wait for the backend to return a job ID.
- Allow the background job to fail.
- Observe the browser's Network tab.
Actual behaviour
- The job-results endpoint returns HTTP 500 with
background job failed. - The frontend displays an error.
- The polling interval continues requesting the same failed job every 10 seconds.
Expected behaviour
Once a background job reaches a terminal failure state:
- Polling should stop.
- The active job ID should be cleared.
- The loading state should be reset.
- The error should remain visible to the user.
Suspected cause
In application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx, the polling error handler calls setLoadingGA(false) and setError(...), but does not clear gaJob.
Since the polling effect depends on gaJob, the existing interval remains active after the request fails.
Local reproduction notes
During local testing, the RQ worker picked up a BIML -> ASVS job but failed with:
Pair GA scheduling requires Postgres backend, got sqlite
The resulting /rest/v1/ma_job_results requests returned HTTP 500. This exposed the frontend polling behaviour.
The SQLite/PostgreSQL compatibility issue is separate and is not the bug being reported.
Could a maintainer confirm whether this is worth addressing? I'm happy to investigate and submit a focused fix with regression tests.
- Lenguaje dominante
- Python
- Estrellas
- 210
- Forks
- 167
- Merge medio
- 4 d 12 h
- PR fusionados (30 d)
- 28
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de OWASP/OpenCRE
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
OWASP/OpenCRE#1215 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
OSCAL Compass adopterAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
MCP tools return "Internal MCP tool error." when OpenCRE is unreachable or times outPosiblemente ocupada @ShaanGS la tomó hace 23 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
OWASP/OpenCRE#1163 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
find_node_by_name endpoint does not enforce MAX_ITEMS_PER_PAGE, allowing unbounded pagination queries`Posiblemente ocupada @Jeffy123-zhu la tomó hace 26 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
OWASP/OpenCRE#1149 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Information disclosure via filesystem existence oracle in web_main.py catch-all routePosiblemente ocupada @0x5t4l1n la tomó hace 39 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
OWASP/OpenCRE#1112 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de OWASP/OpenCRE
Issues similares
-
Unknown stop ID in slow zone data crashes post formatting and skips the rest of that day's postsAbiertobackend bug tm-new-volunteer
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
transitmatters/mbta-slow-zone-bot#81 · 1 comentario ·
-
area:schema documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
risk:high type:ci
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
spacetelescope/rdmt-spire#49 ·
Los mantenedores suelen responder en 1 día