મજબૂત, ટકાઉ પૃષ્ઠભૂમિ કાર્યો (FastAPI ના હલકા વજન BackgroundTasks ની બહાર) માટે, તમે વાસ્તવિક કાર્ય કતાર વાપરો છો: Celery (સ્થાપિત ધોરણ) અથવા ARQ (આધુનિક async-native કતાર). આ ભારે, પુનઃપ્રયાસ કરી શકાય તેવા, શેડ્યુલ કરેલા કાર્યો અલગ worker પ્રક્રિયાઓમાં ચલાવે છે, Redis જેવા broker દ્વારા સમર્થિત.
શું માત્ર 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).
