Celery
花湖少年
这个作者很懒,什么都没留下…
展开
-
Celery学习笔记(一)
Celery学习笔记(一)什么是Celery Celery是一个python模块,它在官网的定义: Celery is asynchronous task queue/job based on distributed message passing. It is focused on real-time operation, but supports scheduling as well.原创 2017-03-28 17:09:46 · 1745 阅读 · 0 评论 -
Celery学习笔记(二)
简单的例子在使用 Celery 的过程中主要的步骤如下: 定义一个应用,并在应用上注册任务; 启动 worker,通过消息队列等待任务; 通过在程序里调用预先注册的任务给 Celery 提交一个任务。 tasks.py 包含了一个简单的示例,自于Celery的官方文档,主要进行了任务的注册,首先创建了一个 Celery 实例 app,这是 Celery 里的一个应用(Application),第一原创 2017-04-06 15:29:45 · 875 阅读 · 0 评论