Guides Django developers in setting up Celery for background tasks, scheduling, and error handling.
- What it does
- This skill provides instructions for adding asynchronous background job processing to a Django application using Celery. It covers installing Celery with Redis, defining shared tasks, starting workers, scheduling recurring jobs with crontab, and handling errors through retries, dead-letter processing, logging, and Flower monitoring. It produces guidance and code snippets rather than runnable scripts.
- When to use it
- Use it when you need to run email sending or other heavy work in the background, schedule periodic tasks such as daily reports or cleanup, queue external API calls, or coordinate complex workflows in a Django project.
- Requirements
- Requires a Django project with Celery and Redis (or RabbitMQ) installed, plus a running broker and worker process. The skill ships no scripts; it is instructions only.