add-celery-task

Community

Generate robust Celery background tasks

Authormichaelayoade
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Creating new Celery tasks often leads to inconsistent patterns, circular imports, missing metrics/logging, and brittle error handling that breaks batch processing.

Core Features & Use Cases

  • Determines the right task module and execution type: Guides you to parse task intent to choose the correct app/tasks/{module}.py destination and whether the task should be scheduled (beat) or run on-demand.
  • Implements a production-ready orchestration template: Establishes a standardized Celery task structure with SessionLocal() lifecycle management, safe per-item exception handling, logging at start/end, and metrics via observe_job().
  • Registers the task for discovery and optional beat scheduling: Ensures celery_app.autodiscover_tasks(["app.tasks"]) discovery and documents how to add a beat schedule using scheduler configuration or Celery beat settings.

Quick Start

Ask to generate a Celery task for syncing subscribers named "sync_subscribers for Splynx reconciliation" that follows the repository’s existing app/tasks/subscribers.py pattern, includes correct DB session handling and per-item error resilience, and returns processing statistics.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: add-celery-task
Download link: https://github.com/michaelayoade/dotmac_crm/archive/main.zip#add-celery-task

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.