Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Example of topic exchange using Celery and Attrs

This is the POC of a blog post on https://rightpython.com.

To run you can either use celery or docker-compose.

Using celery in the host machine:

python setup.py develop
celery worker -A billing.app -l INFO -n billing 
celery worker -A logistic.app -l INFO -n logistic 
python order/task.py

Using docker-compose:

docker-compose up --build

In this case you can check the success using the following command:

docker-compose logs | grep "Task order.v1.submit"

this should return two rows, one for logistic and one for billing.

About

A POC for a post in pythonright.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published