Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #141 from msabramo/patch-1
Browse files Browse the repository at this point in the history
Small tweaks to example.rst
  • Loading branch information
binarymatt committed May 13, 2015
2 parents d9c0bd4 + 1bc12b6 commit 4f4b282
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/source/example.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Example
=========

Let's take a real wold example of a blog where comments need to be checked for
Let's take a real world example of a blog where comments need to be checked for
spam. When the comment is saved in the database, we create a job in the
queue with that comment data. Let's take a django model in this case.

Expand Down Expand Up @@ -33,7 +33,9 @@ You can convert your existing class to be compatible with pyres. All you need
to do is add a :attr:`queue` attribute and define a :meth:`perform` method
on the class.

To insert a job into the queue you need to do something like this::
To insert a job into the queue you need to do something like this:

.. code-block:: python
>>> from pyres import ResQ
>>> r = ResQ()
Expand All @@ -47,4 +49,3 @@ In the **scripts** folder there is an executable::

Just pass a comma separated list of queues the worker should poll.


0 comments on commit 4f4b282

Please sign in to comment.