FastAPI Background Tasks and Middleware The Problem How do I use a FastAPI background task within custom FastAPI middleware?