Wednesday, 4 September 2013

Celery and RabbitMQ issue

Celery and RabbitMQ issue

I'm following the instructions for Celery to get it working on my Ubuntu
13.04 install. Once i've installed celery and rabbitmq I try to run the
example code:
from celery import Celery
celery = Celery('tasks', broker='amqp://guest@localhost//')
@celery.task
def add(x, y):
return x + y
then
celery -A tasks worker --loglevel=info
this returns:
[2013-09-04 22:28:39,226: WARNING/MainProcess] celery@acer ready.
[2013-09-04 22:28:39,240: INFO/MainProcess] consumer: Connected to
amqp://guest@127.0.0.1:5672//.
Where I'm left with a flashing terminal cursor, commands I input return no
response and the only thing to do is CTRL-C out of it.
Any ideas where I might be going wrong?

No comments:

Post a Comment