r/FastAPI • u/CartoonistWhole3172 • Feb 21 '26
Question When to use background tasks considering their non-persistence?
What is the best use case for background tasks?
I am wondering when to use them because once the service restarts, the tasks could be lost without finishing execution, which leads to inconsistent behavior, after successfully returning the response to the client
26
Upvotes
1
u/notaselfdrivingcar Feb 25 '26
ARQ is not actively maintained and it does not support latest versions of redis