Skip to content

Commit 48fdb5c

Browse files
aezellbinarymatt
authored andcommitted
Adding the new Failures page.
1 parent e0efdff commit 48fdb5c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/source/failures.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Failures
2+
===============
3+
4+
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.
9+
10+
Here's a simple example::
11+
12+
>>> from pyres import failure
13+
>>> from pyres.job import Job
14+
>>> from pyres import ResQ
15+
>>> r = Resq()
16+
>>> job = Job.reserve('basic',r)
17+
>>> job.fail("problem")

0 commit comments

Comments
 (0)