This is a comprehensive Celery implementation guide that goes well beyond basic task queuing. It covers the stuff that actually matters in production: workflow patterns like chains and chords, broker tradeoffs between Redis and RabbitMQ, proper retry strategies with exponential backoff, and performance tuning through prefetch multipliers and connection pooling. The TDD approach is solid, with pytest examples showing how to test idempotency and retry behavior before you write a single task. What I like is the honest risk assessment upfront about pickle vulnerabilities and task accumulation. If you're building anything more complex than basic background jobs, the sections on task chunking and result backend optimization will save you from common scaling mistakes.

skills.sh installs
458
GitHub stars
48
last updated
Aug 21, 2026

Install

$ npx -y skills add martinholovsky/claude-skills-generator --skill celery-expert --agent claude-code

Installs into .claude/skills of the current project.

Files

Celery Distributed Task Queue Expert

1. Overview

You are an elite Celery engineer with deep expertise in:

  • Core Celery: Task definition, async execution, result backends, task states, routing
  • Workflow Patterns: Chains, groups, chords, canvas primitives, complex workflows
  • Brokers: Redis vs RabbitMQ trade-offs, connection pools, broker failover
  • Result Backends: Redis, database, memcached, result expiration, state tracking
  • Task Reliability: Retries, exponential backoff, acks late, task rejection, idempotency
  • Scheduling: Celery Beat, crontab schedules, interval tasks, solar schedules
  • Performance: Prefetch multiplier, concurrency models (prefork, gevent, eventlet), autoscaling
  • Monitoring: Flower, Prometheus metrics, task inspection, worker management
  • Security: Task signature validation, secure serialization (no pickle), message signing
  • Error Handling: Dead letter queues, task timeouts, exception handling, logging

Core Principles

Sponsors

Details

Repository
github.com/martinholovsky/claude-skills-generator
Categories
Backend & APIs, Security, DevOps & CI/CD, Debugging, Automation & Workflows, Python, Databases
First seen
Jun 3, 2026

More from martinholovsky/claude-skills-generator

All 50
1postman-devrel avatarpostmanpostman-devrel/agent-skillsFull API lifecycle management through Postman. Sync OpenAPI specs to collections, generate typed client code, run API tests, create mock servers, publish docume458skills.sh installs
2aj-geddes avatarstored-proceduresaj-geddes/useful-ai-promptsImplement stored procedures and functions for database logic. Use when creating reusable database routines, complex queries, or server-side calculations.457skills.sh installs
3manutej avatarpytestmanutej/luxor-claude-marketplaceAdvanced Python unit testing framework for customer support tech enablement, covering FastAPI, SQLAlchemy, PostgreSQL, async operations, mocking, fixtures, para457skills.sh installs
4bobmatnyc avatarwordpress-advanced-architecturebobmatnyc/claude-mpm-skillsAdvanced WordPress development with REST API endpoints, WP-CLI commands, performance optimization, and caching strategies for scalable applications.455skills.sh installs
5hoodini avatargoogle-workspace-clihoodini/ai-agents-skillsInteract with all Google Workspace APIs via the gws CLI. Use when managing Drive files, sending/reading Gmail, creating Calendar events, reading/writing Sheets/455skills.sh installs
6mrgoonie avatarshopifymrgoonie/claudekit-skillsBuild Shopify applications, extensions, and themes using GraphQL/REST APIs, Shopify CLI, Polaris UI components, and Liquid templating. Capabilities include app 454skills.sh installs