Skip to content

Commit 2adc3f0

Browse files
robhudsonbinarymatt
authored andcommitted
Updated failures docs.
- Fixed typo on "Resq" - pep8 the example code
1 parent 56c8547 commit 2adc3f0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/source/failures.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ Pyres provides a ``BaseBackend`` for handling failed jobs. You can subclass
55
this backend to store failed jobs in any system you like.
66

77
Currently, the only provided backend is a ``RedisBackend`` which will store
8-
your failed jobs into a special *failed* queue for later processing or reenqueueing.
8+
your failed jobs into a special *failed* queue for later processing or
9+
reenqueueing.
910

1011
Here's a simple example::
1112

1213
>>> from pyres import failure
1314
>>> from pyres.job import Job
1415
>>> from pyres import ResQ
15-
>>> r = Resq()
16-
>>> job = Job.reserve('basic',r)
17-
>>> job.fail("problem")
16+
>>> r = ResQ()
17+
>>> job = Job.reserve('basic', r)
18+
>>> job.fail('problem')

0 commit comments

Comments
 (0)