मजबूत, टिकाऊ पार्श्वभूमी कार्यों के लिए (FastAPI के हल्के BackgroundTasks से परे), आप एक वास्तविक कार्य कतार का उपयोग करते हैं: Celery (स्थापित मानक) या ARQ (आधुनिक async-native कतार)। ये Redis जैसे ब्रोकर द्वारा समर्थित अलग कार्य प्रक्रियाओं में भारी, पुनः प्रयास्य, अनुसूचित कार्य चलाते हैं।
यह महत्वपूर्ण क्यों है
BackgroundTasks runs in the web process → NO persistence (lost on crash), NO retries,
NO scheduling, and heavy work ties up the worker. Fine only for quick fire-and-forget.
For durable/critical/heavy/scheduled jobs → use a real task queue (Celery / ARQ).
