We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56c8547 commit 2adc3f0Copy full SHA for 2adc3f0
docs/source/failures.rst
@@ -5,13 +5,14 @@ Pyres provides a ``BaseBackend`` for handling failed jobs. You can subclass
5
this backend to store failed jobs in any system you like.
6
7
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.
+your failed jobs into a special *failed* queue for later processing or
9
+reenqueueing.
10
11
Here's a simple example::
12
13
>>> from pyres import failure
14
>>> from pyres.job import Job
15
>>> from pyres import ResQ
- >>> r = Resq()
16
- >>> job = Job.reserve('basic',r)
17
- >>> job.fail("problem")
+ >>> r = ResQ()
+ >>> job = Job.reserve('basic', r)
18
+ >>> job.fail('problem')
0 commit comments