background-task

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

What's the difference between FastAPI background tasks and Celery tasks?

What's the difference between FastAPI background tasks and Celery tasks? Question: Recently I read something about this and the point was that celery is more productive. Now, I can’t find detailed information about the difference between these two and what should be the best way to use them. Asked By: Maksim Burtsev || Source Answers: …

Total answers: 1