python - celery 如何解决worker和client代码同步问题
PHP中文网
PHP中文网 2017-04-18 10:25:32
0
1
649

我的celery worker在A机器, client在B机器, 这样每次代码更新我都必须同时更新A和B,并且依次停掉client, celery worker, 再依次开启celery worker和client, 这样不就非常麻烦吗? 有什么好的解决方案?

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
迷茫

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或者其它的部署系统fabricAnsible etc. can meet your requirements.

The processing logic is the same as yours, but it can be automated.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!