Celery not working on my Heroku

What am I doing wrong?

I recently found an awesome django template called django-skel . I started a project with him because he used the hero with django very easily. It was great until I tried to get celery to work. No matter what I tried, I could not complete my tasks. So I started a new bare-bones app to see if I could make it work without any other crazy obstacles.

This is my bare-bones app . It works for me and for the hero. Django admin is working, my databases are synchronized and migrated. I am using CloudAMQP Little Lemur for my RabbitMQ. I see requests queued in the RabbitMQ interface, nothing happens. How am I in the task queue started manually in the shell:

from herokutest.apps.otgcelery.tasks import add
result = add.delay(2,2)

I am sure that I have all 3 speakers, and still nothing.

I also work locally.

I am sure that there are many questions, and I am ready to give them. Just ask.

+5
source share
1 answer

Thanks for helping everyone. There were a couple of things that I ended up doing wrong. Firstly, I did not import the task correctly. All I needed to do:

from apps.otgcelery.tasks import add
result = add.delay(2,2)

, . , CloudAMQP Free addon django-skel. , , , . . BigWigs RabbitMQ, . , , . , , .

.

+2

All Articles