浏览代码

Fixed docstring for Task.apply

Ask Solem 15 年之前
父节点
当前提交
af39e06e6b
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      celery/task/base.py

+ 3 - 1
celery/task/base.py

@@ -407,11 +407,13 @@ class Task(object):
 
     @classmethod
     def apply(self, args=None, kwargs=None, **options):
-        """Execute this task at once, by blocking until the task
+        """Execute this task locally, by blocking until the task
         has finished executing.
 
         :param args: positional arguments passed on to the task.
         :param kwargs: keyword arguments passed on to the task.
+        :keyword throw: Re-raise task exceptions. Defaults to
+            the ``CELERY_EAGER_PROPAGATES_EXCEPTIONS`` setting.
 
         :rtype :class:`celery.result.EagerResult`: