Parcourir la source

Merge pull request #2443 from frewsxcv/patch-1

Specify return type for apply_sync
Ask Solem Hoel il y a 10 ans
Parent
commit
e5a5fb7901
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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`.