Browse Source

Merge pull request #2443 from frewsxcv/patch-1

Specify return type for apply_sync
Ask Solem Hoel 10 years ago
parent
commit
e5a5fb7901
1 changed files with 4 additions and 0 deletions
  1. 4 0
      celery/app/task.py

+ 4 - 0
celery/app/task.py

@@ -439,6 +439,10 @@ class Task(object):
             attribute.  Trailing can also be disabled by default using the
             :attr:`trail` attribute
         :keyword publisher: Deprecated alias to ``producer``.
+        
+        :rtype :class:`celery.result.AsyncResult`: if 
+            :setting:`CELERY_ALWAYS_EAGER` is not set, otherwise 
+            :class:`celery.result.EagerResult`:
 
         Also supports all keyword arguments supported by
         :meth:`kombu.Producer.publish`.