-
Djarnis
I had trouble using rabbitmq cluster behind a loadbalancer. But not sure if you are having same issues as I did ...
-
The trick that worked for me was disabling connection pooling ...
-
av_
-
it is able to connect to the cluster
-
Djarnis
Yeah, but doesnt it loose the connection at some point?
-
rickmak has quit
-
av_
Djarnis: I have no idea :(
-
shouldn't be worker running always
-
maryokhin joined the channel
-
maryokhin1 has quit
-
Djarnis
Yes.
-
av_
then why it would lose connection?
-
Djarnis
I think there is some bug in the connection pooling when rabbitmq is behind a load balancer … But you dont get ANY tasks through?
-
av_
I have only one task :|
-
its also a single queue
-
Djarnis
Yes, but rabbitmq is in a cluster?
-
av_
-
i doubt if thats a cluster
-
-
I am doubting on `send_task`
-
Djarnis
I am using .delay when handing tasks to celery ...
-
Ahh … I guess it’s because it’s not registrered in the current process ...
-
domino14 joined the channel
-
gnoze5 has quit
-
-
drag0niu1 is now known as drag0nius
-
domino14 has quit
-
av_
Djarnis: yup
-
Djarnis
av_: Just updated with settings.py as well ;)
-
av_
-
Djarnis
Try calling celery_app.config_from_object('django.conf:settings') after your celery_app = Celery('tasks', broker=settings.BROKER_URL) … ?
-
rglen joined the channel
-
av_
Djarnis: thats in tornado code
-
different code base
-
Djarnis
ok … Don’t know tornado ;/ So I guess someone else should take over from here ;)
-
av_
I am sure its not issue from tornado. cos tornado code is able to put the message in queue (I can see admin panel of CloudAMPQ)
-
its with the django code which is not able to consume the message
-
Djarnis
av_: And you also put the celery code in your __init__.py?
-
ieatkittens has quit
-
domino14 joined the channel
-
av_
yes
-
the_rat_ joined the channel
-
Djarnis
And you get nothing from the logs?
-
av_
-
-
Djarnis
Yeah, it looks alright ...
-
av_
yeah :(
-
the_rat_ has quit
-
homeshlice joined the channel
-
Djarnis: I found out why. I am putting in a queue called `inbound` and the consumer task is not connected.
-
how do I specify this in Djanfo
-
Djarnis
just ommit the queue? It uses default celery queue? ;)
-
Yeah, that is probably the fix ;)
-
av_
yeah
-
so how do I make the worker task to listen to that specific queue?
-
Djarnis
celery? It should fetch from the celery queue … If you don’t specify queue in your call, I am sure you’ll be fine ;)
-
JayFK
-
Any idea how to debug this?
-
av_
Djarnis: I meant, Iam not using the default queue. my queue name is `inbound`
-
so how do I configure my django code to consume this queue
-
i think `CELERY_QUEUES `
-
Djarnis
celery -A proj worker -l info -Q inbound?
-
Ergo joined the channel
-
cjhubert joined the channel
-
If the queue name is defined in CELERY_QUEUES it will use that configuration
-
av_
-
and it worked :D
-
Djarnis
av_: Awesome! ;)
-
av_
Thanks a lot! :D
-
Djarnis
Glad I could “help” ;)
-
av_
if this was not working, I had to deal with Pika. Man that one is pita to config
-
Djarnis: :D
-
Djarnis
av_: ;)
-
Djarnis has quit
-
Djarnis joined the channel
-
Djarnis has quit
-
silverfix joined the channel
-
nickabbey joined the channel
-
shredding joined the channel
-
drag0niu1 joined the channel
-
domino14 joined the channel
-
Djarnis joined the channel
-
drag0nius has quit
-
sbhawsin joined the channel
-
malinoff joined the channel
-
Vitor_ joined the channel
-
sbhawsin has quit
-
malinoff has quit
-
maryokhin has quit
-
rglen joined the channel
-
maryokhin joined the channel
-
rglen has quit
-
silverfix has quit
-
silverfix joined the channel
-
hanine has quit
-
the_rat_ joined the channel
-
maryokhin has quit
-
maryokhin1 joined the channel
-
cjhubert joined the channel
-
hanine joined the channel
-
the_rat_ has quit
-
crohling88 joined the channel
-
maryokhin1 has quit
-
maryokhin joined the channel
-
Vitor_ has quit
-
maryokhin has quit
-
maryokhin joined the channel
-
Alen_ has quit
-
crohling88 has quit
-
silverfi_ joined the channel
-
silverfix has quit
-
harriscj has left the channel
-
maryokhin1 joined the channel
-
frodopwns joined the channel
-
maryokhin has quit
-
crohling88 joined the channel
-
frodopwns joined the channel
-
domino14 joined the channel
-
maryokhin1 has quit
-
maryokhin joined the channel
-
hanine is now known as hanynowsky
-
maryokhin has quit
-
maryokhin joined the channel
-
nszceta joined the channel
-
frodopwns joined the channel
-
garic88 has quit
-
maryokhin1 joined the channel
-
maryokhin has quit
-
domino14 joined the channel
-
domino14_ joined the channel
-
maryokhin1 has quit
-
silverfi_ has quit
-
domino14 has quit
-
Djarnis has quit
-
Debnet has quit
-
rglen joined the channel
-
rglen joined the channel
-
malinoff joined the channel
-
kristina joined the channel
-
the_rat_ joined the channel
-
the_rat_ has quit
-
gnoze5 joined the channel
-
disconnected has left the channel
-
malinoff has quit
-
malinoff joined the channel
-
malinoff has quit
-
malinoff joined the channel
-
crohling88 has quit
-
malinoff has quit
-
adrianlc has quit