简体   繁体   中英

Using celery and rabbitmq to execute a task on annother server

Currently we are working on a Python3 web-project where we have to execute a task for our pyramid application. The celery worker is located on another server. Our question is: How can we execute our task by using that worker on the other server and get the result. We'd have to use celery, rabbitMQ and amqp.

We already can execute a task when the worker is located at the same server as our pyramid project. Can anyone help us or give an example of how we can fix this problem. Cause we don't really know how to begin.

http://img818.imageshack.us/img818/1051/drawing1x.jpg

Thanks in advance

The Celery First Steps should be a good place to begin. If you don't have experience with RabbitMQ you may want to try Redis first.

I have found a solution, I have used the send_task method to use a task on another server. and I had already read the first steps it is a very good begin to learn Celery. Thanks all for the responses!!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM