Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
fix typo in the multiple tasks example. Have it run multiple tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinAzoff committed Aug 1, 2009
1 parent 8303198 commit 67b82bd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/index.rst
Expand Up @@ -36,7 +36,10 @@ Example client (single task)::
Example client (multiple parallel tasks)::

client = GearmanClient(["127.0.0.1"])
ts = Taskset([Task(func="echo", arg="foo")])
ts = Taskset([
Task(func="echo", arg="foo"),
Task(func="echo", arg="bar"),
])
client.do_taskset(ts)
for task in ts:
assert ts.result == "foo"
for task in ts.values():
assert task.result == task.arg

0 comments on commit 67b82bd

Please sign in to comment.