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.
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.