当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 在 Amazon SageMaker 管道模式下使用 Horovod 实现多 GPU 分布式训练
- 数据库基本操作
- High concurrency in ngnix cluster
- 不懂数据库索引的底层原理?那是因为你心里没点b树
- It's time to end bertology
- Big data algorithm - bloon filter
- Improvement of maintenance mode of laravel8 update
- Reflection on a case of bus card being stolen and swiped
- Static + code block + polymorphism + exception
- Web Security (1) -- browser homology strategy
猜你喜欢

计组-总线通信控制之异步串行通信的数据传输

C language I blog assignment 03

What do you think of the most controversial programming ideas?

一万四千字分布式事务原理解析,全部掌握你还怕面试被问?

IDEA-项目未自动生成 .iml 文件

洞察——风格注意力网络(SANet)在任意风格迁移中的应用

The most hard core of the whole network explains the computer startup process
![[original] the influence of arm platform memory and cache on the real-time performance of xenomai](/img/cb/0395507ece572556b2bab373f013a5.jpg)
[original] the influence of arm platform memory and cache on the real-time performance of xenomai

一万四千字分布式事务原理解析,全部掌握你还怕面试被问?

Deep into web workers (1)
随机推荐
工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?
Dynamic programming -- state compression DP of set represented by binary
Awk implements SQL like join operation
android基础-RadioButton(单选按钮)
动态规划——用二进制表示集合的状态压缩DP
How to choose a good company
如何应对事关业务生死的数据泄露和删改?
Cpp(一) 安装CMake
一万四千字分布式事务原理解析,全部掌握你还怕面试被问?
栈-括号的匹配
Facebook开源框架如何简化 PyTorch 实验
「混合云」会是云计算的下一个战场吗?
Practice of Xiaoxiong school development board: real equipment access of smart street lamp sandbox experiment
快速上手Git
On the coverage technology and best practice of go code
Code Review最佳实践
ROS学习---远程启动ROS节点
洞察——风格注意力网络(SANet)在任意风格迁移中的应用
C language I blog assignment 03
模型预测准确率高达94%!利用机器学习完美解决2000亿美元库存难题