瀏覽代碼

Merge branch 'master' into v31-lockfree-rate-limits

Ask Solem 12 年之前
父節點
當前提交
8fed932023
共有 2 個文件被更改,包括 10 次插入9 次删除
  1. 7 7
      docs/faq.rst
  2. 3 2
      docs/getting-started/introduction.rst

+ 7 - 7
docs/faq.rst

@@ -423,19 +423,19 @@ Results
 How do I get the result of a task if I have the ID that points there?
 How do I get the result of a task if I have the ID that points there?
 ----------------------------------------------------------------------
 ----------------------------------------------------------------------
 
 
-**Answer**: Use `Task.AsyncResult`::
+**Answer**: Use `task.AsyncResult`::
 
 
-    >>> result = MyTask.AsyncResult(task_id)
+    >>> result = my_task.AsyncResult(task_id)
     >>> result.get()
     >>> result.get()
 
 
-This will give you a :class:`~celery.result.BaseAsyncResult` instance
+This will give you a :class:`~celery.result.AsyncResult` instance
 using the tasks current result backend.
 using the tasks current result backend.
 
 
-If you need to specify a custom result backend you should use
-:class:`celery.result.BaseAsyncResult` directly::
+If you need to specify a custom result backend, or you want to use
+the current application's default backend you can use
+:class:`@Celery.AsyncResult`:
 
 
-    >>> from celery.result import BaseAsyncResult
-    >>> result = BaseAsyncResult(task_id, backend=...)
+    >>> result = app.AsyncResult(task_id)
     >>> result.get()
     >>> result.get()
 
 
 .. _faq-security:
 .. _faq-security:

+ 3 - 2
docs/getting-started/introduction.rst

@@ -25,12 +25,13 @@ A Celery system can consist of multiple workers and brokers, giving way
 to high availability and horizontal scaling.
 to high availability and horizontal scaling.
 
 
 Celery is written in Python, but the protocol can be implemented in any
 Celery is written in Python, but the protocol can be implemented in any
-language.  So far there's RCelery_ for the Ruby programming language, and a
-`PHP client`, but language interoperability can also be achieved
+language.  So far there's RCelery_ for the Ruby programming language,
+node-celery_ for Node.js and a `PHP client`_, but language interoperability can also be achieved
 by :ref:`using webhooks <guide-webhooks>`.
 by :ref:`using webhooks <guide-webhooks>`.
 
 
 .. _RCelery: http://leapfrogdevelopment.github.com/rcelery/
 .. _RCelery: http://leapfrogdevelopment.github.com/rcelery/
 .. _`PHP client`: https://github.com/gjedeer/celery-php
 .. _`PHP client`: https://github.com/gjedeer/celery-php
+.. _node-celery: https://github.com/mher/node-celery
 
 
 What do I need?
 What do I need?
 ===============
 ===============