django-celery
Django + Celery 异步任务模式:配置、任务设计、beat 调度、重试、canvas 工作流、监控和测试。适用于为 Django 应用添加后台作业、定时任务或异步处理。
译文已校对查看英文原文
Django + Celery async task patterns — configuration, task design, beat scheduling, retries, canvas workflows, monitoring, and testing. Use when adding background jobs, scheduled tasks, or async processing to a Django app.
适用对象:设计与内容创作。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- Django + Celery Async Task Patterns
- When to Activate
- Project Setup
- Installation
- celery.py — App Entrypoint
- Django Settings
- Running Workers
- Task Design Patterns
Production-grade patterns for background task processing in Django using Celery with Redis or RabbitMQ. 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 Design tasks so they can safely run multiple times with the same inputs: | Check | Setting | |-------|---------| | Worker restarts on crash | supervisord or systemd unit | | CELERYTASKACKSLATE = True | Re-queue tasks on worker crash | | CELERYWORKERPREFETCHMULTIPLIER = 1 | Fair distribution of long tasks | | Separate queues per priority | -Q default,highpriority,lowpriority | | CELERYTASKSOFTTIMELIMIT set | Graceful timeout before hard kill | | Sentry integration | Capture all taskfailure signals | | Flower or other monitor | Visibility into queue depths | | Beat runs on single node only | Prevents duplicate scheduled task execution | django-patterns — ORM, service layer, and project structure django-tdd — Testing Django models, views, and services python-testing — pytest conf
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- affaan-m/ECC
- 源文件
- pi/core/skills/django-celery/SKILL.md
- 固定版本
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:affaan-m/ECC · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T15:01:42.958Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。