How do you handle a background task failure?

This page summarizes the projects mentioned and recommended in the original post on /r/FastAPI

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Tenacity

    Retrying library for Python (by jd)

  • This depends on the criticality of the task. If it's not worth adding persistence you can have a look at https://github.com/jd/tenacity , it's a flexible retry decorator, it does not require too much effort to use. If you need persistence without introducing too much development of your own maybe have a look at celery or dramatiq as suggested, but I didn't use celery ever since I left django, didn't try dramatiq either.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts