celery-expert

Configure Celery workers with Redis or RabbitMQ for asynchronous workflows.

3|1|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/Probably-Group/Dev-AID --skill celery-expert-probably-group
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: celery-expert
Source: https://github.com/Probably-Group/Dev-AID/tree/main/.dev-aid/skills/expert/celery-expert
Command: npx skills add https://github.com/Probably-Group/Dev-AID --skill celery-expert-probably-group

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Celery task setups often fail silently or become insecure due to missing time limits, non-idempotent retries, unsafe serialization, weak input validation, and poor failure handling, causing production instability and security risk.

Core Features & Use Cases

  • Distributed task queue configuration: Use Celery with Redis/RabbitMQ backends, including reliable worker settings and production-safe broker/result configurations.
  • Workflow orchestration: Design chains, groups, and chords for multi-step processing, parallel execution, and aggregation.
  • Security and reliability guardrails: Enforce JSON-only serialization, validate task inputs, make tasks idempotent, set time limits, configure acknowledgments safely, and expire results.

Use Case: You need to move a time-sensitive, multi-step job (fetch data → process items → notify stakeholders) into Celery while preventing duplicate side effects on retries and hardening the system against common Celery security mistakes.

Quick Start

Use the celery-expert skill to generate a production-ready Celery configuration and task skeleton for a chain-based workflow that uses JSON serialization, includes Pydantic argument validation, sets soft and hard time limits, enables safe late acknowledgments, and implements idempotent retries.

Frequently Asked Questions about celery-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Celery distributed tasks to prevent silent failures and insecure deserialization in production?

Configure Celery distributed tasks with JSON-only serialization and Pydantic-based input validation to prevent silent failures and insecure deserialization in production. Set reliable worker settings using Redis or RabbitMQ broker backends for production stability.

What is the best way to design multi-step Celery workflows with chains, groups, and chords?

The best way to design multi-step Celery workflows is by orchestrating chains, groups, and chords for sequential processing, parallel execution, and result aggregation. This approach structures complex asynchronous jobs while maintaining reliable execution flow.

How do I implement idempotent task retries in Celery to avoid duplicate side effects?

Implement idempotent task retries in Celery by designing tasks to safely handle re-execution without duplicate side effects. Configure safe retry policies alongside acks_late and worker-lost handling to ensure tasks process reliably even during failures.

How do I set up Celery Beat for scheduling periodic tasks safely?

Set up Celery Beat for scheduling periodic tasks by configuring reliable execution schedules within your distributed task queue. Combine this with time_limit and soft_time_limit resource controls to prevent runaway jobs and ensure safe operational processing.

Does Celery support resource controls like time limits and result expiration for security hardening?

Celery supports resource controls like time_limit and soft_time_limit for security hardening, alongside result expiration to reduce memory risk. Configuring safe acknowledgments and enforcing JSON serialization further hardens the system against common security mistakes.

Why do my Celery workers fail silently during asynchronous workflow processing?

Celery workers fail silently during asynchronous workflow processing due to missing time limits, non-idempotent retries, unsafe serialization, and poor failure handling. Applying resource controls, safe late acknowledgments, and input validation resolves this production instability.