manta-node 0.5b0.dev172__py3-none-any.whl → 0.5b0.dev182__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.
- manta_node/infrastructure/container/manager.py +14 -6
- {manta_node-0.5b0.dev172.dist-info → manta_node-0.5b0.dev182.dist-info}/METADATA +1 -1
- {manta_node-0.5b0.dev172.dist-info → manta_node-0.5b0.dev182.dist-info}/RECORD +7 -7
- {manta_node-0.5b0.dev172.dist-info → manta_node-0.5b0.dev182.dist-info}/WHEEL +0 -0
- {manta_node-0.5b0.dev172.dist-info → manta_node-0.5b0.dev182.dist-info}/entry_points.txt +0 -0
- {manta_node-0.5b0.dev172.dist-info → manta_node-0.5b0.dev182.dist-info}/licenses/LICENSE +0 -0
- {manta_node-0.5b0.dev172.dist-info → manta_node-0.5b0.dev182.dist-info}/top_level.txt +0 -0
|
@@ -415,7 +415,7 @@ class ContainerManager(DockerRaiser):
|
|
|
415
415
|
------
|
|
416
416
|
MantaDockerError
|
|
417
417
|
Container not found
|
|
418
|
-
Cannot
|
|
418
|
+
Cannot get status of container
|
|
419
419
|
"""
|
|
420
420
|
container = self.containers.get((swarm_id, task_id))
|
|
421
421
|
if container is None:
|
|
@@ -433,14 +433,22 @@ class ContainerManager(DockerRaiser):
|
|
|
433
433
|
f"ContainerManager.get_task_status: container FOUND "
|
|
434
434
|
f"task={task_id} swarm={swarm_id} container_id={container.id}"
|
|
435
435
|
)
|
|
436
|
-
|
|
437
|
-
|
|
436
|
+
try:
|
|
437
|
+
inspect = await container.show()
|
|
438
|
+
except Exception as exc:
|
|
439
|
+
self.tracer.error("Cannot get status of container")
|
|
440
|
+
raise MantaDockerError(
|
|
441
|
+
"Cannot get status of container", metadata=self.tracer.metadata
|
|
442
|
+
) from exc
|
|
443
|
+
container_status = inspect["State"]["Status"]
|
|
444
|
+
exit_code = inspect["State"].get("ExitCode", 0)
|
|
438
445
|
self.tracer.info(
|
|
439
|
-
f"ContainerManager.get_task_status:
|
|
446
|
+
f"ContainerManager.get_task_status: "
|
|
447
|
+
f"container_status={container_status} exit_code={exit_code} "
|
|
448
|
+
f"task={task_id}"
|
|
440
449
|
)
|
|
441
450
|
|
|
442
|
-
|
|
443
|
-
return TaskLifecycleService.calculate_status_from_container(status)
|
|
451
|
+
return TaskLifecycleService.status_from_exit(container_status, exit_code)
|
|
444
452
|
|
|
445
453
|
async def get_container_logs(
|
|
446
454
|
self, swarm_id: ID, task_id: ID, since: Optional[datetime] = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: manta_node
|
|
3
|
-
Version: 0.5b0.
|
|
3
|
+
Version: 0.5b0.dev182
|
|
4
4
|
Summary: Node side software of the Manta platform. It is responsible for the communication with the Manta Core and the execution of the tasks.
|
|
5
5
|
Author-email: Hugo Miralles <hugomiralles@manta-tech.io>, Matthew Thompson <matthew.thompson@manta-tech.io>
|
|
6
6
|
License: GNU AFFERO GENERAL PUBLIC LICENSE
|
|
@@ -23,7 +23,7 @@ manta_node/infrastructure/config/node_config_manager.py,sha256=iAzMWPjs2AWTxwDLA
|
|
|
23
23
|
manta_node/infrastructure/container/__init__.py,sha256=EO4SndUwmXrHczM4qkleUbxC7lTGz3c3Hd3iGrPg6D8,262
|
|
24
24
|
manta_node/infrastructure/container/docker_adapter.py,sha256=eEUVpJSuDxI-9XahIxnLHeoyHE-G-Q-7avQVaLxtAIM,6990
|
|
25
25
|
manta_node/infrastructure/container/image_executor.py,sha256=hX6-bBjwhSxX5nO6AWvTXq0Y6THa34NmKpWkJJAsptI,8548
|
|
26
|
-
manta_node/infrastructure/container/manager.py,sha256=
|
|
26
|
+
manta_node/infrastructure/container/manager.py,sha256=VNG5w3zeE4CISQC_l4pRDaBzUXaD4Bd6AEDa5kEosLM,18288
|
|
27
27
|
manta_node/infrastructure/filesystem/__init__.py,sha256=nf6Fakp3wuFKjSAm_oihI6WE_yyUY6Uelr7A1GwSvXs,145
|
|
28
28
|
manta_node/infrastructure/filesystem/dataset_manager.py,sha256=lCcsLdDHM-rRfhndpD9fQ56rPKYcuel-p3qx8nUxffE,14894
|
|
29
29
|
manta_node/infrastructure/grpc/__init__.py,sha256=w2lG41CUq4yFrmfjgtvJ0HWZfirlynPvdTYbqJZBEx4,254
|
|
@@ -35,9 +35,9 @@ manta_node/infrastructure/metrics/collector.py,sha256=nhFPAbjA04ye3UaGN95_zdpf9h
|
|
|
35
35
|
manta_node/infrastructure/metrics/metrics_collector.py,sha256=jhEocAPWS6xgbNvcBBiEB9cAN_9hEGssZJXoysQzWOk,10518
|
|
36
36
|
manta_node/infrastructure/mqtt/__init__.py,sha256=riXo1sXgO4YV6DHCmWRqK61BAmuGLdHiVdQFunAJadA,140
|
|
37
37
|
manta_node/infrastructure/mqtt/command_handler.py,sha256=2kYl-1ojbv_NbgMfoFPPTA-snWIYYXwprevurH7SF84,17094
|
|
38
|
-
manta_node-0.5b0.
|
|
39
|
-
manta_node-0.5b0.
|
|
40
|
-
manta_node-0.5b0.
|
|
41
|
-
manta_node-0.5b0.
|
|
42
|
-
manta_node-0.5b0.
|
|
43
|
-
manta_node-0.5b0.
|
|
38
|
+
manta_node-0.5b0.dev182.dist-info/licenses/LICENSE,sha256=P5HojupjKoAusNtHqWOvO-YFolwLFWQ7Uq0XVKK9nFQ,35291
|
|
39
|
+
manta_node-0.5b0.dev182.dist-info/METADATA,sha256=K1R3f-vgzG96XrZEVGEJ1r3BTMzhaBoKtLApdsfqJXI,44654
|
|
40
|
+
manta_node-0.5b0.dev182.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
41
|
+
manta_node-0.5b0.dev182.dist-info/entry_points.txt,sha256=C_zcw6mdmztNxVUZGLZ83UH5TwcSuqb2C-rB4e2CQoc,56
|
|
42
|
+
manta_node-0.5b0.dev182.dist-info/top_level.txt,sha256=nbT5J5WETuXM9UPoQckl29uUOq8wMYdRb9QDx5kAFeo,11
|
|
43
|
+
manta_node-0.5b0.dev182.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|