manta-node 0.5b0.dev86__py3-none-any.whl → 0.5b0.dev88__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.
@@ -84,3 +84,28 @@ class ImageExecutor(DockerRaiser):
84
84
  f"(exit={exit_code}) → {status}"
85
85
  )
86
86
  return status
87
+
88
+ async def stop_image(
89
+ self,
90
+ swarm_id: ID,
91
+ task_id: ID,
92
+ timeout: Optional[int] = 10,
93
+ ) -> None:
94
+ """
95
+ Stop a running image-mode container.
96
+
97
+ Sends SIGTERM and waits up to ``timeout`` seconds for the container to
98
+ exit, then falls back to SIGKILL (handled by the Docker daemon).
99
+ Idempotent: aiodocker treats an already-stopped container as success.
100
+
101
+ The container reference is retained in ``self.containers`` so that
102
+ ``get_image_task_status`` can still return the final exit status.
103
+ Removal is the caller's responsibility (see ``remove_container``).
104
+ """
105
+ container = self.containers.get((swarm_id, task_id))
106
+ if container is None:
107
+ raise MantaDockerError("Container not found", metadata=self.tracer.metadata)
108
+
109
+ self.tracer.debug(f"Stopping container for task {task_id}")
110
+ await container.stop(timeout=timeout)
111
+ self.tracer.info(f"Task {task_id} container stopped.")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: manta_node
3
- Version: 0.5b0.dev86
3
+ Version: 0.5b0.dev88
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
@@ -22,7 +22,7 @@ manta_node/infrastructure/config/__init__.py,sha256=jbRzb1c0RohpF83WOwtDpe19dBXV
22
22
  manta_node/infrastructure/config/node_config_manager.py,sha256=iAzMWPjs2AWTxwDLAdCK8GpMMw_14QOzX11hvQMnSvY,30414
23
23
  manta_node/infrastructure/container/__init__.py,sha256=EO4SndUwmXrHczM4qkleUbxC7lTGz3c3Hd3iGrPg6D8,262
24
24
  manta_node/infrastructure/container/docker_adapter.py,sha256=Sxprl0RpjT8epxTzYUJxSyHko3IBcus2ihneq4kRH7Q,6980
25
- manta_node/infrastructure/container/image_executor.py,sha256=PfLCqzpn8HVsxpPEpZmoQYnFQj4W91jrZUjcntnyzoQ,2881
25
+ manta_node/infrastructure/container/image_executor.py,sha256=sJYdZ0h6EpXkUC45Wr3AxZfGWG5a_mgh6wIzwwzgTWY,3900
26
26
  manta_node/infrastructure/container/manager.py,sha256=qpHwBOsDdiv10i5Qlx9PUn5UHr1oy8ejRGalTCi6AOQ,17375
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
@@ -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=bDH8k3Vkbbb7q3P68VamhMbtLJ4vSSivqZP3IfMBqIQ,11833
38
- manta_node-0.5b0.dev86.dist-info/licenses/LICENSE,sha256=P5HojupjKoAusNtHqWOvO-YFolwLFWQ7Uq0XVKK9nFQ,35291
39
- manta_node-0.5b0.dev86.dist-info/METADATA,sha256=X0FK0-NSk6onzuGJWTWhnj0RXC7O7nqSyWlGhkZvWvw,44653
40
- manta_node-0.5b0.dev86.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
41
- manta_node-0.5b0.dev86.dist-info/entry_points.txt,sha256=C_zcw6mdmztNxVUZGLZ83UH5TwcSuqb2C-rB4e2CQoc,56
42
- manta_node-0.5b0.dev86.dist-info/top_level.txt,sha256=nbT5J5WETuXM9UPoQckl29uUOq8wMYdRb9QDx5kAFeo,11
43
- manta_node-0.5b0.dev86.dist-info/RECORD,,
38
+ manta_node-0.5b0.dev88.dist-info/licenses/LICENSE,sha256=P5HojupjKoAusNtHqWOvO-YFolwLFWQ7Uq0XVKK9nFQ,35291
39
+ manta_node-0.5b0.dev88.dist-info/METADATA,sha256=3AjnR_-6emGinHG7bw6eYTefamQUTPBrId8FyP-tqWw,44653
40
+ manta_node-0.5b0.dev88.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
41
+ manta_node-0.5b0.dev88.dist-info/entry_points.txt,sha256=C_zcw6mdmztNxVUZGLZ83UH5TwcSuqb2C-rB4e2CQoc,56
42
+ manta_node-0.5b0.dev88.dist-info/top_level.txt,sha256=nbT5J5WETuXM9UPoQckl29uUOq8wMYdRb9QDx5kAFeo,11
43
+ manta_node-0.5b0.dev88.dist-info/RECORD,,