python - Celery is not working on my Heroku -


what on earth doing wrong?

i have found awesome django template called django-skel. started project because made easy use heroku django. going great until tried celery working. no matter tried couldn't tasks run. started new bare bones app see if working without of other craziness preventing things.

this bare-bones app. have , running on heroku. django admin working, have databases sync'd , migrated. using cloudamqp little lemur rabbitmq. see requests queued in rabbitmq interface, nothing happens. how queue tasks manually run in shell:

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

i make sure have 3 dynos running, , still nothing.

also have working locally.

i sure there tons of questions, , i'm willing give them. please ask.

thank everyones help. there couple things ended doing wrong. first thing was importing task incorrectly. had was:

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

celery picky how import tasks. second issue cloudamqp free addon not work out of box django-skel. limit number of connections three, , how each thread kicks on uses connections incredibly fast , tasks start not connecting. fixed in couple different ways. tried bigwigs rabbitmq, , worked great. however, because still in beta decided try out redis. worked great, , tasks firing off fast can call them.

once again thank help.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -