Persistence / Retries for background tasks #2628
-
This is a speculative question. I came to know about DEP 0014 (Django Enhancement Proposal) - which plans to standardize and build support for background tasks within Django itself (using asyncio). Starlette already supports Background Tasks. Would it be too difficult to add persistence for these background jobs, say with PostgreSQL's I have a FastAPI + PostgreSQL app in production that needs Celery and Redis for background jobs. If Starlette (and therefore FastAPI) supported persisted background jobs with Postgres as backend, it would simplify my infra a lot. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can easily write your own background task system, it is loosely coupled. See for example https://github.com/adriangb/asgi-background. |
Beta Was this translation helpful? Give feedback.
You can easily write your own background task system, it is loosely coupled. See for example https://github.com/adriangb/asgi-background.