Skip to content
affaan-m avatar

Django Celery

Production Celery patterns for Django covering task design, retries, Beat scheduling, and commit-aware publishing.

CCM score
73 of 100
skills.sh installs
8.8K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers task configuration, retryable and idempotent task design, Beat scheduling, canvas workflows, monitoring, and testing
  • Includes celery.py setup, Django settings for broker and time limits, and worker commands for dev and production
  • Enforces soft and hard time limits, exponential retry backoff with jitter, and commit-aware task publishing via delay_on_commit()
  • Designed for adding background jobs, scheduled tasks, or async processing to an existing Django app

Install

$ npx -y skills add affaan-m/ecc --skill django-celery -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/affaan-m/ecc
Categories
Python, Backend & APIs
First seen
Jul 14, 2026

Questions

What is the django-celery skill for?

The django-celery skill gives your agent Django and Celery async task patterns, covering configuration, task design, beat scheduling, retries, canvas workflows, monitoring, and testing. It is meant for adding background jobs, scheduled tasks, or async processing to a Django app.

How do I install the django-celery skill?

Run npx -y skills add affaan-m/ecc --skill django-celery -y in your project to install it. Once installed, the agent can use the Celery setup, task, and beat scheduling patterns when you work on background jobs in Django.

Where does django-celery rank in the Python category?

On the Python category page on Claude Marketplaces, django-celery ranks in the top 50. Other skills in the category that lead it include python-performance-optimization, python-design-patterns, async-python-patterns, python-code-style and uv-package-manager.

What do I need to use the django-celery patterns?

The patterns assume a Django project with Celery installed, typically with a Redis or RabbitMQ broker, plus django-celery-results and django-celery-beat for result storage and periodic tasks. The skill walks through creating the celery.py entrypoint, the Django settings, and the commands to run workers and beat.

More from affaan-m/ecc

All 257

Similar to Django Celery

More Python