当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Web Security (1) -- browser homology strategy
- 盘点那些争议最大的编程观点,你是什么看法呢?
- [random talk] the goal and way of software design
- The instanceof operator in ecmascript7 specification
- There's not much time left for Kwai Chung.
- awk实现类sql的join操作
- 使用 Xunit.DependencyInjection 改造测试项目
- 某618大促项目的复盘总结
- 留给快手的时间不多了
- 洞察——风格注意力网络(SANet)在任意风格迁移中的应用
猜你喜欢
一万四千字分布式事务原理解析,全部掌握你还怕面试被问?
技术总监7年自述——如何选择一家好公司
How to choose a good company
统计文本中字母的频次(不区分大小写)
See once to understand, graphic single chain table inversion
Git code submission operation, and git push prompt failed to push some refs'xxx '
Insight -- the application of sanet in arbitrary style transfer
Three steps, one pit, five steps and one thunder, how to lead the technical team under the rapid growth?
IDEA-项目未自动生成 .iml 文件
What magic things can a line of Python code do?
随机推荐
static+代码块+多态+异常
See once to understand, graphic single chain table inversion
什么都2020了,LINQ查询你还在用表达式树
工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?
「混合云」会是云计算的下一个战场吗?
你可能不知道的Animation动画技巧与细节
获取树形菜单列表
在 Amazon SageMaker 管道模式下使用 Horovod 实现多 GPU 分布式训练
虚拟DOM中给同一层级的元素设置固定且唯一的key为什么能提高性能
Kylin on Kubernetes 在 eBay 的实践
[random talk] the goal and way of software design
A detailed explanation of microservice architecture
Using pipe() to improve code readability in pandas
Let's talk about the locks in the database
使用jsDelivr加速你的网站
使用 Xunit.DependencyInjection 改造测试项目
Data transmission of asynchronous serial communication controlled by group bus communication
Adobe Prelude / PL 2020 software installation package (with installation tutorial)
Ac86u KX Online
Web安全(四)---XSS攻击