ominfra 0.0.0.dev122__py3-none-any.whl → 0.0.0.dev123__py3-none-any.whl
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.
- ominfra/deploy/_executor.py +1 -1
- ominfra/journald/messages.py +1 -1
- ominfra/pyremote/_runcommands.py +1 -1
- ominfra/scripts/journald2aws.py +2 -2
- ominfra/scripts/supervisor.py +2216 -2044
- ominfra/supervisor/context.py +16 -41
- ominfra/supervisor/dispatchers.py +88 -58
- ominfra/supervisor/events.py +59 -70
- ominfra/supervisor/groups.py +162 -0
- ominfra/supervisor/main.py +27 -11
- ominfra/supervisor/poller.py +51 -53
- ominfra/supervisor/process.py +267 -352
- ominfra/supervisor/signals.py +52 -0
- ominfra/supervisor/states.py +26 -47
- ominfra/supervisor/supervisor.py +105 -81
- ominfra/supervisor/types.py +57 -6
- ominfra/supervisor/{compat.py → utils.py} +34 -53
- {ominfra-0.0.0.dev122.dist-info → ominfra-0.0.0.dev123.dist-info}/METADATA +3 -3
- {ominfra-0.0.0.dev122.dist-info → ominfra-0.0.0.dev123.dist-info}/RECORD +23 -21
- {ominfra-0.0.0.dev122.dist-info → ominfra-0.0.0.dev123.dist-info}/LICENSE +0 -0
- {ominfra-0.0.0.dev122.dist-info → ominfra-0.0.0.dev123.dist-info}/WHEEL +0 -0
- {ominfra-0.0.0.dev122.dist-info → ominfra-0.0.0.dev123.dist-info}/entry_points.txt +0 -0
- {ominfra-0.0.0.dev122.dist-info → ominfra-0.0.0.dev123.dist-info}/top_level.txt +0 -0
ominfra/deploy/_executor.py
CHANGED
@@ -138,7 +138,7 @@ def cached_nullary(fn): # ta.Callable[..., T]) -> ta.Callable[..., T]:
|
|
138
138
|
# ../../../../omlish/lite/check.py
|
139
139
|
|
140
140
|
|
141
|
-
def check_isinstance(v:
|
141
|
+
def check_isinstance(v: ta.Any, spec: ta.Union[ta.Type[T], tuple]) -> T:
|
142
142
|
if not isinstance(v, spec):
|
143
143
|
raise TypeError(v)
|
144
144
|
return v
|
ominfra/journald/messages.py
CHANGED
@@ -74,5 +74,5 @@ class JournalctlMessageBuilder:
|
|
74
74
|
def feed(self, data: bytes) -> ta.Sequence[JournalctlMessage]:
|
75
75
|
ret: ta.List[JournalctlMessage] = []
|
76
76
|
for line in self._buf.feed(data):
|
77
|
-
ret.append(self._make_message(check_isinstance(line, bytes)))
|
77
|
+
ret.append(self._make_message(check_isinstance(line, bytes)))
|
78
78
|
return ret
|
ominfra/pyremote/_runcommands.py
CHANGED
@@ -221,7 +221,7 @@ def cached_nullary(fn): # ta.Callable[..., T]) -> ta.Callable[..., T]:
|
|
221
221
|
# ../../../omlish/lite/check.py
|
222
222
|
|
223
223
|
|
224
|
-
def check_isinstance(v:
|
224
|
+
def check_isinstance(v: ta.Any, spec: ta.Union[ta.Type[T], tuple]) -> T:
|
225
225
|
if not isinstance(v, spec):
|
226
226
|
raise TypeError(v)
|
227
227
|
return v
|
ominfra/scripts/journald2aws.py
CHANGED
@@ -917,7 +917,7 @@ def cached_nullary(fn): # ta.Callable[..., T]) -> ta.Callable[..., T]:
|
|
917
917
|
# ../../../../../omlish/lite/check.py
|
918
918
|
|
919
919
|
|
920
|
-
def check_isinstance(v:
|
920
|
+
def check_isinstance(v: ta.Any, spec: ta.Union[ta.Type[T], tuple]) -> T:
|
921
921
|
if not isinstance(v, spec):
|
922
922
|
raise TypeError(v)
|
923
923
|
return v
|
@@ -2704,7 +2704,7 @@ class JournalctlMessageBuilder:
|
|
2704
2704
|
def feed(self, data: bytes) -> ta.Sequence[JournalctlMessage]:
|
2705
2705
|
ret: ta.List[JournalctlMessage] = []
|
2706
2706
|
for line in self._buf.feed(data):
|
2707
|
-
ret.append(self._make_message(check_isinstance(line, bytes)))
|
2707
|
+
ret.append(self._make_message(check_isinstance(line, bytes)))
|
2708
2708
|
return ret
|
2709
2709
|
|
2710
2710
|
|