मजबूत, टिकाऊ पृष्ठभूमि कार्य (FastAPI को हल्का BackgroundTasks भन्दा परे) को लागि, तपाईं वास्तविक कार्य कतार प्रयोग गर्नुहुन्छ: Celery (स्थापित मान) वा ARQ (आधुनिक async-native कतार)। यी अलग कार्यकर्ता प्रक्रियाहरूमा भारी, पुन:प्रयासयोग्य, निर्धारित कार्य चलाउँछन्, Redis जस्तो ब्रोकर द्वारा समर्थित।
BackgroundTasks किन मात्र नहीं?
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).
