HF RL Explorer

Task: Fix FastAPI Asynchronous Background Task Blocking Issue

Task: Fix FastAPI Asynchronous Background Task Blocking Issue: a task in Terminal-Lego-15k (Harbor dataset). In FastAPI, when a background task contains a CPU-bound (long-running synchronous computation) mixed with async database operations, the synchronous computation blocks the event loop…

The task

In FastAPI, when a background task contains a CPU-bound (long-running synchronous computation) mixed with async database operations, the synchronous computation blocks the event loop, preventing the server from handling other incoming requests.

Part of PrimeIntellect/Terminal-Lego-15k.