What is Celery?
A distributed task queue for Python that enables asynchronous processing of background jobs and scheduled tasks.
Celery offloads time-consuming tasks (sending emails, processing images, generating reports) to background workers. Tasks are sent to a message broker (Redis or RabbitMQ) and processed by worker processes independently.
Features include task scheduling (periodic tasks via Celery Beat), retry logic, task chaining and grouping, priority queues, and result backends. Celery integrates with Django, Flask, and FastAPI.