.cursor/skills/celery-patterns/SKILL.md
Celery task patterns including task definition, retry strategies, periodic tasks, and best practices. Use when implementing background tasks, scheduled jobs, or async processing.
npx skillsauth add AngelDann/app-comisions-dist celery-patternsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
apps/<app>/tasks.py@shared_task for reusable tasks across projectsbind=True when needing access to task instance (retries, task ID, state updates)max_retries based on acceptable total wait timeretry_jitter=True to prevent thundering herdretry_backoff_max to cap maximum wait timeautoretry_for tuple for automatic retry on specific exceptionsQuery current state before processing; skip if already complete
Use status transitions (pending → processing → complete/failed) with select_for_update() for race condition safety
Use database constraints to prevent duplicate processing
config/celery.py using beat_schedulecrontab() for time-based schedulesexcept: pass)uv run celery -A config worker -l infouv run celery -A config beat -l infouv run celery -A config flowerIf this project does not use uv, run the same commands with your virtualenv activated (e.g. celery -A <project> worker -l info). Adjust -A to your Celery app path (fito_ai / config as applicable).
Adapted from claude-code-django (.claude/skills/celery-patterns).
development
pytest-django testing patterns, Factory Boy, fixtures, and TDD workflow. Use when writing tests, creating test factories, or following TDD red-green-refactor cycle.
development
HTMX patterns for Django including partial templates, hx-* attributes, and dynamic UI without JavaScript. Use when building interactive UI, handling AJAX requests, or creating dynamic components.
development
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
development
Check if documentation is in sync with code. Use when the user wants to verify that documentation matches current code, find outdated docs, or audit documentation accuracy. Triggers on requests like "check docs", "sync documentation", "are the docs up to date", "/docs-sync".