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.
Files changed (12) hide show
  1. home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/processview/__pycache__/version.cpython-37.pyc +0 -0
  2. home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/processview/core/__pycache__/superviseprocess.cpython-37.pyc +0 -0
  3. home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/processview/core/manager/__pycache__/manager.cpython-37.pyc +0 -0
  4. home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/processview/core/manager/manager.py +1 -1
  5. home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/processview/core/superviseprocess.py +7 -0
  6. home/payno/.local/share/virtualenvs/tomwer_venv/lib/python3.7/site-packages/processview/version.py +1 -1
  7. 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
  8. /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
  9. /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
  10. /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
  11. /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
  12. /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
@@ -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
@@ -77,7 +77,7 @@ RELEASE_LEVEL_VALUE = {
77
77
 
78
78
  MAJOR = 0
79
79
  MINOR = 1
80
- MICRO = 1
80
+ MICRO = 2
81
81
  RELEV = "rc" # <16
82
82
  SERIAL = 0 # <16
83
83
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: processview
3
- Version: 0.1.1b0
3
+ Version: 0.1.2b0
4
4
  Summary: Library workflow process supervision
5
5
  Home-page: https://gitlab.esrf.fr/workflow/processview
6
6
  Author: data analysis unit