diff options
author | Vincent Driessen <vincent@3rdcloud.com> | 2011-11-17 22:39:53 +0100 |
---|---|---|
committer | Vincent Driessen <vincent@3rdcloud.com> | 2011-11-17 22:39:53 +0100 |
commit | d780c929c0fee5557ebffc3a0b46c236c2f2872f (patch) | |
tree | 201531e7caa8e07effa8219d8feeec725f5db220 /examples | |
parent | d761dd0280dcb60fa26eebe6ab171db10c607727 (diff) | |
download | rq-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.py | 2 |
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() |