Self-question and answer, it seems that there is a loophole in my question. In fact, python executes scripts through the python interpreter, and the python interpreter itself is an independent process to perform operations, so I can go anywhere at any time from the client. Execute the script. This question is my problem because I don’t have a clear understanding of the multi-threading application scenario. This question is over, thank you for your attention!
There are many ways, for example, you can throw the task directly into celery, or you can program your script into multiple processes/threads, and use set or list to pass parameters
Self-question and answer, it seems that there is a loophole in my question. In fact, python executes scripts through the python interpreter, and the python interpreter itself is an independent process to perform operations, so I can go anywhere at any time from the client. Execute the script. This question is my problem because I don’t have a clear understanding of the multi-threading application scenario. This question is over, thank you for your attention!
You can consider using fabric for deployment. However, multi-node batch deployment can be achieved.
There are many ways, for example, you can throw the task directly into celery, or you can program your script into multiple processes/threads, and use set or list to pass parameters