From 7052600011cfd7482ca3247f58cfac292dfb57ec Mon Sep 17 00:00:00 2001 From: Ann Witbrock Date: Thu, 14 Apr 2011 15:27:11 +0100 Subject: [PATCH] format publish --- python/new_task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/new_task.py b/python/new_task.py index 95c5597..0bea3b4 100755 --- a/python/new_task.py +++ b/python/new_task.py @@ -9,7 +9,8 @@ channel = connection.channel() channel.queue_declare(queue='task_queue', durable=True) message = ' '.join(sys.argv[1:]) or "Hello World!" -channel.basic_publish(exchange='', routing_key='task_queue', +channel.basic_publish(exchange='', + routing_key='task_queue', body=message, properties=pika.BasicProperties( delivery_mode = 2, # make message persistent