Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti committed Oct 27, 2016
1 parent 98c3515 commit 60d3cba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion kuyruk/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def main():
dest='queues',
default=[],
action='append',
help='consume tasks from queue (may be specified multiple times)')
help='consume tasks from queue (may be specified multiple times), '
'if queue name ends with "." hostname will be appended to queue name')
parser_worker.add_argument(
'--max-load',
type=float,
Expand Down
3 changes: 2 additions & 1 deletion kuyruk/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def send_to_queue(self, args=(), kwargs={}, host=None, wait_result=None):
:param kwargs: Keyword arguments that will be passed to task
on execution.
:param host: Send this task to specific host. ``host`` will be
appended to the queue name.
appended to the queue name. If ``host`` is "localhost", hostname
of the server will be appended to the queue name.
:param wait_result:
Wait for result from worker for ``wait_result`` seconds.
If timeout occurs,
Expand Down

0 comments on commit 60d3cba

Please sign in to comment.