Task: Implement Multiprocessing for CPU-Bound Tasks in FastAPI
Task: Implement Multiprocessing for CPU-Bound Tasks in FastAPI: a task in Terminal-Lego-15k (Harbor dataset). When serving FastAPI requests, CPU-bound tasks can block the event loop and degrade performance. You need to implement a FastAPI application that properly handles CPU-bound processing on…
The task
When serving FastAPI requests, CPU-bound tasks can block the event loop and degrade performance. You need to implement a FastAPI application that properly handles CPU-bound processing on multiple CPU cores while maintaining the async nature of the framework.
Part of PrimeIntellect/Terminal-Lego-15k.