FastAPI/Starlette: How to handle exceptions inside background tasks?
FastAPI/Starlette: How to handle exceptions inside background tasks? Question: I developed some API endpoints using FastAPI. These endpoints are allowed to run BackgroundTasks. Unfortunately, I do not know how to handle unpredictable issues from theses tasks. An example of my API is shown below: # main.py from fastapi import FastAPI import uvicorn app = FastAPI() …
Total answers: 2