Browse Source

Fixed docstring for Task.apply

Ask Solem 14 years ago
parent
commit
af39e06e6b
1 changed files with 3 additions and 1 deletions
  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`: