当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 洞察——风格注意力网络(SANet)在任意风格迁移中的应用
- ngnix集群高并发
- Annual salary of 900000 programmers is not as good as 3800 civil servants a month? How to choose between stability and high income?
- 面部识别:攻击类型和反欺骗技术
- More than 50 object detection datasets from different industries
- Web安全(二)---跨域资源共享
- Facebook开源框架如何简化 PyTorch 实验
- easyui dialog“缓存问题”
- sed之查找替换
- 虚拟DOM中给同一层级的元素设置固定且唯一的key为什么能提高性能
猜你喜欢
构造请求日志分析系统
Summary of the resumption of a 618 promotion project
laravel8更新之维护模式改进
密码学-尚硅谷
See once to understand, graphic single chain table inversion
On hiz buffer
Three steps, one pit, five steps and one thunder, how to lead the technical team under the rapid growth?
Ubuntu下搜狗输入法的下载安装及配置
The emergence and significance of micro service
洞察——风格注意力网络(SANet)在任意风格迁移中的应用
随机推荐
洞察——风格注意力网络(SANet)在任意风格迁移中的应用
Reflection on a case of bus card being stolen and swiped
Insight -- the application of sanet in arbitrary style transfer
聊一聊数据库中的锁
留给快手的时间不多了
我是如何失去团队掌控的?
The prediction accuracy of the model is as high as 94%! Using machine learning to solve the 200 billion dollar inventory problem perfectly
虚拟DOM中给同一层级的元素设置固定且唯一的key为什么能提高性能
14000 word distributed transaction principle analysis, master all of them, are you afraid of being asked in the interview?
Writing method of field and field comparison condition in where condition in thinkphpp6
Don't treat exceptions as business logic, which you can't afford
A detailed explanation of microservice architecture
汇编函数mcall systemstack asmcgocall syscall
密码学-尚硅谷
Jingtao project day09
栈-括号的匹配
How Facebook open source framework simplifies pytorch experiment
Web安全(二)---跨域资源共享
阿里terway源码分析
Analysis of kubernetes service types: from concept to practice