当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
猜你喜欢
统计文本中字母的频次(不区分大小写)
How to choose a good company
C language I blog assignment 03
一万四千字分布式事务原理解析,全部掌握你还怕面试被问?
Jingtao project day09
来自不同行业领域的50多个对象检测数据集
【C++学习笔记】C++ 标准库 std::thread 的简单使用,一文搞定还不简单?
Data transmission of asynchronous serial communication controlled by group bus communication
What magic things can a line of Python code do?
不懂数据库索引的底层原理?那是因为你心里没点b树
随机推荐
栈-括号的匹配
Getting started with go wire dependency injection
当 TiDB 与 Flink 相结合:高效、易用的实时数仓
laravel8更新之维护模式改进
屏读时代,我们患上了注意力缺失候群症
supervisor进程管理安装使用
我是如何失去团队掌控的?
A detailed explanation of microservice architecture
On hiz buffer
Implementation of Caesar cipher
Awk implements SQL like join operation
Big data algorithm - bloon filter
计组-总线通信控制之异步串行通信的数据传输
来自不同行业领域的50多个对象检测数据集
状态压缩:对动态规划进行降维打击
Improvement of maintenance mode of laravel8 update
How to choose a good company
关于update操作并发问题
Insight -- the application of sanet in arbitrary style transfer
Using pipe() to improve code readability in pandas