当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Assembly function MCALL systemstack asmcgocal system call
- In the age of screen reading, we suffer from attention deficit syndrome
- A detailed explanation of microservice architecture
- Get started, GIT
- Reflection on a case of bus card being stolen and swiped
- Web Security (1) -- browser homology strategy
- Web安全(二)---跨域资源共享
- GrowingIO 响应式编程探索和实践
- Animation techniques and details you may not know
- How to learn technology efficiently
猜你喜欢
一万四千字分布式事务原理解析,全部掌握你还怕面试被问?
Annual salary of 900000 programmers is not as good as 3800 civil servants a month? How to choose between stability and high income?
统计文本中字母的频次(不区分大小写)
The CPU does this without the memory
Deep into web workers (1)
阿里terway源码分析
来自不同行业领域的50多个对象检测数据集
Improvement of maintenance mode of laravel8 update
use Xunit.DependencyInjection Transformation test project
不懂数据库索引的底层原理?那是因为你心里没点b树
随机推荐
Thinkphp6中where条件中字段与字段比较条件的写法
凯撒密码实现
Got timeout reading communication packets解决方法
How to think in the way of computer
Three steps, one pit, five steps and one thunder, how to lead the technical team under the rapid growth?
Web安全(四)---XSS攻击
Summary of the resumption of a 618 promotion project
laravel8更新之维护模式改进
三步一坑五步一雷,高速成长下的技术团队怎么带?
洞察——风格注意力网络(SANet)在任意风格迁移中的应用
Jingtao project day09
我是如何失去团队掌控的?
栈-括号的匹配
A detailed explanation of microservice architecture
laravel8更新之维护模式改进
GrowingIO 响应式编程探索和实践
Web安全(三)---CSRF攻击
Using pipe() to improve code readability in pandas
Cpp(一) 安装CMake
Code Review Best Practices