Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help with celery/rabbitmq configuration #27

Open
abhas opened this issue Nov 12, 2018 · 3 comments
Open

Need help with celery/rabbitmq configuration #27

abhas opened this issue Nov 12, 2018 · 3 comments
Labels
question Further information is requested

Comments

@abhas
Copy link

abhas commented Nov 12, 2018

I recently setup colossus. And the main web app works great! Thanks for building this.

I installed and ran rabbitmq as instructed but for some reason I am not able to get celery to talk to rabbitmq to schedule and send emails. Any documentation or links on how I could setup this up?

Thanks a lot!

@vitorfs vitorfs added the question Further information is requested label Nov 12, 2018
@vitorfs
Copy link
Owner

vitorfs commented Nov 12, 2018

Hi @abhas

Basically I have RabbitMQ running on the server, and the scripts that I'm using in production right now are those:

Worker: https://github.com/vitorfs/colossus/blob/master/etc/colossus_celery_worker_supervisord.conf
Beat/Scheduler: https://github.com/vitorfs/colossus/blob/master/etc/colossus_celery_beat_supervisord.conf

Those are supervisor configuration files (http://supervisord.org)

This is what I'm using in production, but during development I just run the commands in a terminal (one for each):

celery beat -A colossus

And

celery worker -A colossus

For those to work you need to be running RabbitMQ server:

rabbitmq-server

Usually that's what I do

@abhas
Copy link
Author

abhas commented Nov 14, 2018

Hi @vitorfs,

I tried to run celery in the manner you've detailed above. But colossus does not even attempt to talk to celery. And hence, none of the mails pass through. When I checked out the configuration for celery, it all seemed to be there by default. Do I need to do any configuration for colossus to talk to celery? Is there a way I can enable more debug logs?

I'm sorry I am not familiar enough with Celery myself (or even much Python). And hence these questions.

Once I get it working, I will build a docker-compose file to run all of these via docker. Hope you saw the pull request that contains the Dockerfile.

Cheers, Abhas.

@abhas
Copy link
Author

abhas commented Dec 6, 2018

Hi @vitorfs --- if you can provide some quick suggestions on what to debug, It would really be helpful. I can try to use colossus.

Thanks a lot...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants