ロバストで耐久性のあるバックグラウンドジョブ (FastAPIの軽量な BackgroundTasks を超える) には、本物のタスクキューを使用します: Celery (確立された標準) または ARQ (モダンな非同期ネイティブキュー)。これらは重いリトライ可能なスケジュール済みワークを別のワーカープロセスで実行し、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).
