Celery 3.0 Documentation
2.60 MB
703 页
0 评论
语言 | 格式 | 评分 |
---|---|---|
英语 | .pdf | 3 |
摘要 | ||
The document provides comprehensive documentation for Celery 3.0, detailing new features, improvements, and fixes. Key updates include default enablement of the broker connection pool, new security serializer, timezone support, and improved task execution options like callbacks and errbacks. Version 3.0.0 introduces significant changes, ensuring backward compatibility while enhancing functionality. The document also covers configuration, troubleshooting, and version history, emphasizing support for various Python versions and message brokers like RabbitMQ and Redis. | ||
AI总结 | ||
### 《Celery 3.0 Documentation》总结
1. **版本更新与新功能**
- **Celery 3.0.0 (Chiastic Slide)**
- 发布日期:2012年7月7日
- 主要新增功能:
- `contrib.migrate`:提供了将任务从一个队列移动到另一个队列的工具,包括`move_tasks()`和`move_task_by_id()`。
- 任务事件 (`task-sent`) 现在包含 `exchange` 和 `routing_key` 字段。
- 修复了在Python 3上安装的问题(由Jed Smith贡献)。
- **其他版本更新**
- **3.0.24**:修复了工作进程崩溃、任务重试问题,改进了AMQP和Redis/Cache结果后端的性能。
- **依赖更新**:依赖Kombu 2.5.15和billiard 2.7.3.34。
2. **重要改进与优化**
- Broker连接池默认启用。
- RabbitMQ结果后端:Exchange不再自动删除。
- 修复了挂起的工作进程问题(需手动启用解决方案)。
- 新增时区支持和安全序列化功能。
- 引入了CELERY_ANNOTATIONS设置,允许更灵活的任务注释。
3. **安装与兼容性**
- 官方支持的平台:CPython 2.5, 2.6, 2.7, 3.2, 3.3, PyPy和Jython。
- 如果使用Django,需升级到django-celery 2.5。
4. **任务与执行**
-新增任务执行时间限制设置`timelimit`,可设置软时限和硬时限。
- 支持任务回调(callbacks)和错误回调(errbacks)。
5. **入门指南**
Celery是分布式任务队列系统,支持多种消息中间件(如RabbitMQ、Redis等)。新手可通过“First Steps with Celery”教程快速上手,包括选择Broker、安装、创建任务、启动worker等内容。
6. **版本历史与修复**
- 记录了从1.0到3.0的详细更新日志,包括功能新增、问题修复和兼容性改进。
总结:Celery 3.0版本带来了显著的功能增强和性能优化,重点体现在任务管理、Broker支持、安全性和用户体验等方面,同时兼容性得到了进一步提升。 |
P1
P2
P3
P4
P5
P6
P7
下载文档到本地,方便使用
- 可预览页数已用完,剩余
696 页请下载阅读 -
文档评分