processview 0.1.1b0__tar.gz → 0.1.2b0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/processview/__pycache__/version.cpython-37.pyc +0 -0
- home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/processview/core/__pycache__/superviseprocess.cpython-37.pyc +0 -0
- home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/processview/core/manager/__pycache__/manager.cpython-37.pyc +0 -0
- home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/processview/core/manager/manager.py +1 -1
- home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/processview/core/superviseprocess.py +7 -0
- home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/processview/version.py +1 -1
- home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/{processview-0.1.1b0-py3.7.egg-info → processview-0.1.2b0-py3.7.egg-info}/PKG-INFO +1 -1
- /home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/{processview-0.1.1b0-py3.7.egg-info → processview-0.1.2b0-py3.7.egg-info}/SOURCES.txt +0 -0
- /home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/{processview-0.1.1b0-py3.7.egg-info → processview-0.1.2b0-py3.7.egg-info}/dependency_links.txt +0 -0
- /home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/{processview-0.1.1b0-py3.7.egg-info → processview-0.1.2b0-py3.7.egg-info}/not-zip-safe +0 -0
- /home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/{processview-0.1.1b0-py3.7.egg-info → processview-0.1.2b0-py3.7.egg-info}/requires.txt +0 -0
- /home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/{processview-0.1.1b0-py3.7.egg-info → processview-0.1.2b0-py3.7.egg-info}/top_level.txt +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -126,7 +126,7 @@ class ProcessManager:
|
|
|
126
126
|
|
|
127
127
|
:param BaseProcess process:
|
|
128
128
|
"""
|
|
129
|
-
if process.process_id in self._processes:
|
|
129
|
+
if process.process_id in self._processes and process.is_master_process:
|
|
130
130
|
del self._processes[process.process_id]
|
|
131
131
|
|
|
132
132
|
def get_processes(self) -> tuple:
|
|
@@ -63,6 +63,9 @@ class SuperviseProcess:
|
|
|
63
63
|
|
|
64
64
|
def __init__(self, name=None, process_id=None):
|
|
65
65
|
self._name = name
|
|
66
|
+
self._is_master_process = process_id is None
|
|
67
|
+
"""is this process the master process of the SuperviseProcess. Or is
|
|
68
|
+
it just one of the underlying process of a master SuperviseProcess"""
|
|
66
69
|
if process_id is None:
|
|
67
70
|
ProcessManager().register(self)
|
|
68
71
|
else:
|
|
@@ -71,6 +74,10 @@ class SuperviseProcess:
|
|
|
71
74
|
def __del__(self):
|
|
72
75
|
ProcessManager().unregister(self)
|
|
73
76
|
|
|
77
|
+
@property
|
|
78
|
+
def is_master_process(self):
|
|
79
|
+
return self._is_master_process
|
|
80
|
+
|
|
74
81
|
@property
|
|
75
82
|
def process_id(self):
|
|
76
83
|
return self.__process_id
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|