summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorVincent Driessen <vincent@3rdcloud.com>2011-11-17 22:39:53 +0100
committerVincent Driessen <vincent@3rdcloud.com>2011-11-17 22:39:53 +0100
commitd780c929c0fee5557ebffc3a0b46c236c2f2872f (patch)
tree201531e7caa8e07effa8219d8feeec725f5db220 /examples
parentd761dd0280dcb60fa26eebe6ab171db10c607727 (diff)
downloadrq-d780c929c0fee5557ebffc3a0b46c236c2f2872f.tar.gz
Change semantics of work(). Add work_burst().
work() will now start the worker run loop, and work_burst() now leads to the burst-then-quit behaviour.
Diffstat (limited to 'examples')
-rw-r--r--examples/run_worker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/run_worker.py b/examples/run_worker.py
index e87ec89..4853788 100644
--- a/examples/run_worker.py
+++ b/examples/run_worker.py
@@ -7,4 +7,4 @@ conn.push(Redis())
if __name__ == '__main__':
q = Queue()
- Worker(q).work_forever()
+ Worker(q).work()