我的celery worker在A机器, client在B机器, 这样每次代码更新我都必须同时更新A和B,并且依次停掉client, celery worker, 再依次开启celery worker和client, 这样不就非常麻烦吗? 有什么好的解决方案?
迷茫2017-04-18 10:27:32
First, celery must be restarted after updating the code, because the scripts have been loaded into the memory, and you can only restart if you want to update.
Second, there are many ways to synchronize codes, such as: rsync
或者其它的部署系统fabric
,Ansible
etc. can meet your requirements.
The processing logic is the same as yours, but it can be automated.