Replace the in-process queue with RQ (Redis Queue) using the outbox pattern. The API server writes jobs to the database only. A poller thread discovers QUEUED jobs and enqueues them to RQ. Separate ...