Browse Source

Small changes to README (thanks apollo13)

Ask Solem 15 years ago
parent
commit
58627b9ff7
1 changed files with 7 additions and 6 deletions
  1. 7 6
      README.rst

+ 7 - 6
README.rst

@@ -328,7 +328,7 @@ finish and get its return value (or exception if the task failed).
 
 So, let's execute the task again, but this time we'll keep track of the task:
 
-    >>> result = MyTask.delay("do_something", some_arg="foo bar baz")
+    >>> result = MyTask.delay("hello")
     >>> result.ready() # returns True if the task has finished processing.
     False
     >>> result.result # task is not ready, so no return value yet.
@@ -341,13 +341,14 @@ So, let's execute the task again, but this time we'll keep track of the task:
     True
 
 
-If the task raises an exception, the ``result.success()`` will be ``False``,
-and ``result.result`` will contain the exception instance raised.
+If the task raises an exception, the return value of ``result.successful()``
+will be ``False``, and ``result.result`` will contain the exception instance
+raised by the task.
 
-Auto-discovery of tasks
------------------------
+Worker auto-discovery of tasks
+------------------------------
 
-``celery`` has an auto-discovery feature like the Django Admin, that
+``celeryd`` has an auto-discovery feature like the Django Admin, that
 automatically loads any ``tasks.py`` module in the applications listed
 in ``settings.INSTALLED_APPS``. This autodiscovery is used by the celery
 worker to find registered tasks for your Django project.