AOSSIE-Org/EduAid

[GOOD FIRST ISSUE]: ML Model Endpoints Lack Timeout Protection

Ouverte

#592 ouverte le 17 mars 2026

 (1 commentaire) (0 réaction) (0 personne assignée)JavaScript (427 forks)auto 404
good first issue

Métriques du dépôt

Stars
 (172 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

Context

Description

Fixed a critical issue where ML model endpoints and external API calls could hang indefinitely due to missing timeout handling.

Problem

  • Requests could run forever if models became unresponsive
  • Flask worker threads were not released (resource exhaustion)
  • Frontend showed infinite loading with no feedback
  • One slow request could block the entire system

What Needs to Be Done

  • Added backend timeout wrapper for all ML and external API calls
  • Introduced input validation and structured error handling
  • Returned proper HTTP 504 Gateway Timeout for long-running requests
  • Implemented frontend request timeout using AbortController

Resources

Getting Started

  • I have joined the Discord server and will post updates there
  • I have read the Contribution Guide
  • I understand this issue is assigned on a first-come, first-served basis

Guide contributeur