エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Python multiprocessing - watch a process and restart it when fails
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Python multiprocessing - watch a process and restart it when fails
Consider this working code: from multiprocessing import Process from updaters import app1, app2 i... Consider this working code: from multiprocessing import Process from updaters import app1, app2 if __name__ == '__main__': apps = [ app1, app2] for app in apps: instance = app() p = Process(target=instance.start_listener) p.start() p.join() This works fine until one process fails (lets say some exception) - how Can I programmatically monitor the process and restart it if it fails

