
Django Celery
This covers the standard Celery integration patterns you'll actually use in a Django production app: worker setup, task decorators with retries and timeouts, Beat scheduling for cron jobs, and canvas primitives like chains and chords. The examples are solid on the boring but critical stuff like idempotent task design, exponential backoff config, and using `acks_late` to handle worker crashes. If you're adding background jobs to Django or debugging why your tasks are piling up in the queue, this gives you the configuration and patterns without having to piece together Stack Overflow answers. The testing section appears cut off but the core implementation patterns are all here.
- skills.sh installs
- 1.7K
- GitHub stars
- 229.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add affaan-m/everything-claude-code --skill django-celery --agent claude-codeInstalls into .claude/skills of the current project.
Files
Django + Celery Async Task Patterns
Production-grade patterns for background task processing in Django using Celery with Redis or RabbitMQ.
When to Activate
- Adding background jobs or async processing to a Django app
- Implementing periodic/scheduled tasks
- Offloading slow operations (email, PDF generation, API calls) from request cycle
- Setting up Celery Beat for cron-like scheduling
- Debugging task failures, retries, or queue backlogs
- Writing tests for Celery tasks
Project Setup
Installation
pip install 'celery[redis]' django-celery-results django-celery-beat
celery.py — App Entrypoint
# config/celery.py
import os
from celery import Celery
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.development')
app = Celery('myproject')
app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks() # Discovers tasks.py in each INSTALLED_APP
@app.task(bind=True, ignore_result=True)
def debug_task(self):
print(f'Request: {self.request!r}')
# config/__init__.py
from .celery import app as celery_app
__all__ = ('celery_app',)
Django Settings
Sponsors
Details
- Repository
- github.com/affaan-m/everything-claude-code
- Category
- Python
- First seen
- Jun 3, 2026
More from affaan-m/everything-claude-code
All 256- Ecc Guide1.7K
- Error Handling1.7K
- Flox Environments1.7K
- Frontend Design Direction1.7K
- Homelab Network Readiness1.7K
- Homelab Network Setup1.7K
- Ios Icon Gen1.7K
- Make Interfaces Feel Better1.7K
- Motion Advanced1.7K
- Motion Ui1.7K
- Netmiko Ssh Automation1.7K
- Network Bgp Diagnostics1.7K
- Network Config Validation1.7K
- Network Interface Health1.7K
- Plan Orchestrate1.7K
- Production Audit1.7K
- Project Guidelines Example1.7K
- Redis Patterns1.7K
- Scholar Evaluation1.7K
- Skill Stocktake1.7K
- Tinystruct Patterns1.7K
- Ui To Vue1.7K
- Vite Patterns1.7K
- Cost Tracking1.6K