|
@@ -154,7 +154,7 @@ if the module name is "tasks.py":
|
|
|
Automatic naming and relative imports
|
|
|
-------------------------------------
|
|
|
|
|
|
-Relative imports and automatic name generation does not go well together,
|
|
|
+Relative imports and automatic name generation do not go well together,
|
|
|
so if you're using relative imports you should set the name explicitly.
|
|
|
|
|
|
For example if the client imports the module "myapp.tasks" as ".tasks", and
|
|
@@ -682,7 +682,7 @@ General
|
|
|
|
|
|
A string identifying the default serialization
|
|
|
method to use. Defaults to the :setting:`task_serializer`
|
|
|
- setting. Can be `pickle` `json`, `yaml`, or any custom
|
|
|
+ setting. Can be `pickle`, `json`, `yaml`, or any custom
|
|
|
serialization methods that have been registered with
|
|
|
:mod:`kombu.serialization.registry`.
|
|
|
|
|
@@ -1264,7 +1264,7 @@ Handlers
|
|
|
How it works
|
|
|
============
|
|
|
|
|
|
-Here comes the technical details, this part isn't something you need to know,
|
|
|
+Here come the technical details. This part isn't something you need to know,
|
|
|
but you may be interested.
|
|
|
|
|
|
All defined tasks are listed in a registry. The registry contains
|
|
@@ -1423,8 +1423,8 @@ Granularity
|
|
|
-----------
|
|
|
|
|
|
The task granularity is the amount of computation needed by each subtask.
|
|
|
-In general it is better to split the problem up into many small tasks, than
|
|
|
-have a few long running tasks.
|
|
|
+In general it is better to split the problem up into many small tasks rather
|
|
|
+than have a few long running tasks.
|
|
|
|
|
|
With smaller tasks you can process more tasks in parallel and the tasks
|
|
|
won't run long enough to block the worker from processing other waiting tasks.
|
|
@@ -1596,7 +1596,7 @@ depending on state from the current transaction*:
|
|
|
Example
|
|
|
=======
|
|
|
|
|
|
-Let's take a real world example; A blog where comments posted needs to be
|
|
|
+Let's take a real world example: a blog where comments posted need to be
|
|
|
filtered for spam. When the comment is created, the spam filter runs in the
|
|
|
background, so the user doesn't have to wait for it to finish.
|
|
|
|