当前位置:网站首页>Using subprocess residue in supervisor and python multiprocessing
Using subprocess residue in supervisor and python multiprocessing
2020-11-07 20:57:00 【Coxhuang】
List of articles
- supervisor and Python Of multiprocessing Use of
- #1 Environmental Science
- #2 demand
- #3 solve Python Multi process and supervisor problem
supervisor and Python Of multiprocessing Use of
#1 Environmental Science
Ubuntu 16.04 Python 3.8.1
#2 demand
- Use supervisor management Python The program , When Python Used in program multiprocessing modular ,supervisor Of stop and restart Instructions only kill the main process , The child process will remain
#3 solve Python Multi process and supervisor problem
killasgroup It can be said that it is specially adapted Python Of multiprocessing modular , If the stopasgroup=true, that killasgroup It will also default to true, So we just need to configure stopasgroup=true that will do , Be careful stopasgroup and killasgroup The types of signals sent are different .
Configuration example :
[group:multiprocesstest] programs=multiprocess [program:multiprocess] command=python3 /home/cox/work/test/multiprocess_suspend/multiprocess_suspend.py directory=/home/cox user=cox autorestart=true redirect_stderr=true stopasgroup=true
Participation of this paper Tencent cloud media sharing plan , You are welcome to join us , share .
版权声明
本文为[Coxhuang]所创,转载请带上原文链接,感谢
边栏推荐
- 汇编函数mcall systemstack asmcgocall syscall
- 盘点那些争议最大的编程观点,你是什么看法呢?
- On the concurrency of update operation
- What do you think of the most controversial programming ideas?
- 工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?
- ROS学习---远程启动ROS节点
- Static + code block + polymorphism + exception
- Analysis of kubernetes service types: from concept to practice
- Big data algorithm - bloon filter
- Cpp(一) 安装CMake
猜你喜欢
Deep into web workers (1)
关于晋升全栈工程师,从入门到放弃的神功秘籍,不点进来看一看?
一次公交卡被“盗刷”事件带来的思考
websocket+probuf.原理篇
See once to understand, graphic single chain table inversion
The CPU does this without the memory
Design pattern of facade and mediator
Using pipe() to improve code readability in pandas
delphi10的rest.json与system.json的踩坑
【C++学习笔记】C++ 标准库 std::thread 的简单使用,一文搞定还不简单?
随机推荐
密码学-尚硅谷
The emergence and significance of micro service
[original] the influence of arm platform memory and cache on the real-time performance of xenomai
ngnix集群高并发
盘点那些争议最大的编程观点,你是什么看法呢?
Cpp(二) 创建Cpp工程
go wire 依赖注入入门
Writing method of field and field comparison condition in where condition in thinkphpp6
Facebook开源框架如何简化 PyTorch 实验
See once to understand, graphic single chain table inversion
工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?
Awk implements SQL like join operation
AFO
On hiz buffer
Improvement of maintenance mode of laravel8 update
使用jsDelivr加速你的网站
【C++学习笔记】C++ 标准库 std::thread 的简单使用,一文搞定还不简单?
Let's talk about the locks in the database
来自不同行业领域的50多个对象检测数据集
Insight -- the application of sanet in arbitrary style transfer