akernel-sdk 0.2.0rc7__tar.gz → 0.2.0rc8__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.
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/PKG-INFO +2 -2
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_service_process_guest.py +16 -1
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk.egg-info/PKG-INFO +2 -2
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk.egg-info/requires.txt +1 -1
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/pyproject.toml +2 -2
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/README.md +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/__init__.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_addresses.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_backends/__init__.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_backends/_scheduling.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_backends/adx.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_backends/base.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_backends/errors.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_backends/registry.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_client.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_compose.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_docker_network_guest.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_docker_runtime.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_dockercontext.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_dockerfile.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_dockerfile_launch.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_dockerfile_runner.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_dualmethod.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_fork.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_image_bridge_guest.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_image_plan.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_image_resolver.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_instance.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_managed_build.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_pty_transport.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_resource_api.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_resources.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_sandbox_resources.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_sandboxes.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_service_process.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_snapshots.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_timeouts.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/_tls.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/cli.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/commands.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/filesystem.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/pty.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/py.typed +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/sandbox.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk/types.py +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk.egg-info/SOURCES.txt +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk.egg-info/dependency_links.txt +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk.egg-info/entry_points.txt +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/akernel_sdk.egg-info/top_level.txt +0 -0
- {akernel_sdk-0.2.0rc7 → akernel_sdk-0.2.0rc8}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: akernel-sdk
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.0rc8
|
|
4
4
|
Summary: Python SDK and CLI for AKernel remote sandboxes
|
|
5
5
|
Author: AKernel Authors
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -23,7 +23,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
23
23
|
Classifier: Topic :: System :: Distributed Computing
|
|
24
24
|
Requires-Python: >=3.10
|
|
25
25
|
Description-Content-Type: text/markdown
|
|
26
|
-
Requires-Dist: adx-environment==0.1.
|
|
26
|
+
Requires-Dist: adx-environment==0.1.0rc12
|
|
27
27
|
Requires-Dist: idna<4,>=3
|
|
28
28
|
Requires-Dist: httpx<1,>=0.27
|
|
29
29
|
Requires-Dist: PyYAML<7,>=6
|
|
@@ -111,6 +111,7 @@ def operate(root, action):
|
|
|
111
111
|
}
|
|
112
112
|
if action not in signals:
|
|
113
113
|
raise ValueError("unsupported process action")
|
|
114
|
+
stop_deadline = time.monotonic() + 5
|
|
114
115
|
for _ in range(3 if action == "stop" else 1):
|
|
115
116
|
parents = {row["pid"]: row["ppid"] for row in rows}
|
|
116
117
|
|
|
@@ -130,7 +131,21 @@ def operate(root, action):
|
|
|
130
131
|
try:
|
|
131
132
|
os.kill(row["pid"], signals[action])
|
|
132
133
|
except ProcessLookupError:
|
|
133
|
-
|
|
134
|
+
continue
|
|
135
|
+
if action == "stop":
|
|
136
|
+
# SIGSTOP delivery is asynchronous. Confirm the waiter is
|
|
137
|
+
# stopped before a child can generate a stop notification.
|
|
138
|
+
while True:
|
|
139
|
+
current = stat(row["pid"])
|
|
140
|
+
if (
|
|
141
|
+
current is None
|
|
142
|
+
or current["start_time"] != row["start_time"]
|
|
143
|
+
or current["state"] in ("T", "t", "Z")
|
|
144
|
+
):
|
|
145
|
+
break
|
|
146
|
+
if time.monotonic() >= stop_deadline:
|
|
147
|
+
raise RuntimeError("process did not acknowledge stop")
|
|
148
|
+
time.sleep(0.001)
|
|
134
149
|
if action == "stop":
|
|
135
150
|
time.sleep(0.03)
|
|
136
151
|
rows = inspect(root)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: akernel-sdk
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.0rc8
|
|
4
4
|
Summary: Python SDK and CLI for AKernel remote sandboxes
|
|
5
5
|
Author: AKernel Authors
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -23,7 +23,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
23
23
|
Classifier: Topic :: System :: Distributed Computing
|
|
24
24
|
Requires-Python: >=3.10
|
|
25
25
|
Description-Content-Type: text/markdown
|
|
26
|
-
Requires-Dist: adx-environment==0.1.
|
|
26
|
+
Requires-Dist: adx-environment==0.1.0rc12
|
|
27
27
|
Requires-Dist: idna<4,>=3
|
|
28
28
|
Requires-Dist: httpx<1,>=0.27
|
|
29
29
|
Requires-Dist: PyYAML<7,>=6
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "akernel-sdk"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.0rc8"
|
|
8
8
|
description = "Python SDK and CLI for AKernel remote sandboxes"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "Apache-2.0"
|
|
@@ -28,7 +28,7 @@ classifiers = [
|
|
|
28
28
|
"Topic :: System :: Distributed Computing",
|
|
29
29
|
]
|
|
30
30
|
dependencies = [
|
|
31
|
-
"adx-environment==0.1.
|
|
31
|
+
"adx-environment==0.1.0rc12",
|
|
32
32
|
"idna>=3,<4",
|
|
33
33
|
"httpx>=0.27,<1",
|
|
34
34
|
"PyYAML>=6,<7",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|