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 e0efdff commit 48fdb5cCopy full SHA for 48fdb5c
docs/source/failures.rst
@@ -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