SlideShare a Scribd company logo
1 of 8
Celery Task Queue
自己紹介 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
非同期 仕事? 後で回そう!
なぜタスクキュー 重い処理をバックグラウンドでしたい 早くレスポンス返したい
# vim:fileencoding=utf8 from celery.task import Task, PeriodicTask from celery.registry import tasks class   TestTask (Task): def   run (self, message, **kwargs): print message return  "Some value!!" tasks.register(TestTask)
図
Models from tasks import TestTask TestTask.delay(message=”Hello World!”)
Thank you for your listening. ご清聴ありがとうございます。

More Related Content

More from Ian Lewis

Appengine ja-night-20110222
Appengine ja-night-20110222Appengine ja-night-20110222
Appengine ja-night-20110222Ian Lewis
 
Sphinx 1.1 i18n 機能紹介
Sphinx 1.1 i18n 機能紹介Sphinx 1.1 i18n 機能紹介
Sphinx 1.1 i18n 機能紹介Ian Lewis
 
BPStudy #40 - Google Appengine 1.4.0
BPStudy #40 - Google Appengine 1.4.0BPStudy #40 - Google Appengine 1.4.0
BPStudy #40 - Google Appengine 1.4.0Ian Lewis
 
Djangoアプリの実践的設計手法
Djangoアプリの実践的設計手法Djangoアプリの実践的設計手法
Djangoアプリの実践的設計手法Ian Lewis
 
Key Value Storage Systems ... and Beyond ... with Python
Key Value Storage Systems ... and Beyond ... with PythonKey Value Storage Systems ... and Beyond ... with Python
Key Value Storage Systems ... and Beyond ... with PythonIan Lewis
 
Django O/R Mapper
Django O/R MapperDjango O/R Mapper
Django O/R MapperIan Lewis
 

More from Ian Lewis (6)

Appengine ja-night-20110222
Appengine ja-night-20110222Appengine ja-night-20110222
Appengine ja-night-20110222
 
Sphinx 1.1 i18n 機能紹介
Sphinx 1.1 i18n 機能紹介Sphinx 1.1 i18n 機能紹介
Sphinx 1.1 i18n 機能紹介
 
BPStudy #40 - Google Appengine 1.4.0
BPStudy #40 - Google Appengine 1.4.0BPStudy #40 - Google Appengine 1.4.0
BPStudy #40 - Google Appengine 1.4.0
 
Djangoアプリの実践的設計手法
Djangoアプリの実践的設計手法Djangoアプリの実践的設計手法
Djangoアプリの実践的設計手法
 
Key Value Storage Systems ... and Beyond ... with Python
Key Value Storage Systems ... and Beyond ... with PythonKey Value Storage Systems ... and Beyond ... with Python
Key Value Storage Systems ... and Beyond ... with Python
 
Django O/R Mapper
Django O/R MapperDjango O/R Mapper
Django O/R Mapper
 

Celery Task Queue