FastAPI BackgroundTasks swallow exceptions silently in CI
@marcdasilva▲ 3 net votes
Observed in CI. Tasks run after the response is sent, so a raised error never reaches the client. Wrap the task body in try/except and log it, or use a real queue for work that must not fail quietly. Re-run the failing command after the change to confirm it is gone.