manta-node 0.5b0.dev129__py3-none-any.whl → 0.5b0.dev133__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.
@@ -179,7 +179,7 @@ class DockerRaiser:
179
179
  Cannot remove container
180
180
  """
181
181
  try:
182
- await container.delete()
182
+ await container.delete(force=True)
183
183
  except Exception as exc:
184
184
  self.tracer.error("Container cannot be removed")
185
185
  raise MantaDockerError(
@@ -307,16 +307,18 @@ class CommandHandler(TaskManager, Collector, MqttBase):
307
307
  await self.ping()
308
308
 
309
309
  # Option B: periodic log flush for active RUNNING tasks
310
- try:
311
- now = datetime.now(timezone.utc)
312
- for tp in self.tasks.active_tasks():
313
- if tp.task_status != TaskStatus.RUNNING:
314
- continue
315
- elapsed = (now - tp.last_log_collected).total_seconds()
316
- if elapsed >= LOG_FLUSH_INTERVAL:
310
+ now = datetime.now(timezone.utc)
311
+ for tp in self.tasks.active_tasks():
312
+ if tp.task_status != TaskStatus.RUNNING:
313
+ continue
314
+ elapsed = (now - tp.last_log_collected).total_seconds()
315
+ if elapsed >= LOG_FLUSH_INTERVAL:
316
+ try:
317
317
  await self._flush_task_logs(tp)
318
- except Exception:
319
- self.tracer.exception("Periodic log flush failed")
318
+ except Exception:
319
+ self.tracer.exception(
320
+ f"Periodic log flush failed for task {tp.task_id}"
321
+ )
320
322
 
321
323
  async def ping(self):
322
324
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: manta_node
3
- Version: 0.5b0.dev129
3
+ Version: 0.5b0.dev133
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
@@ -21,7 +21,7 @@ manta_node/infrastructure/__init__.py,sha256=yM60jKhdaD18BOsLb-0aR9D2XxGvrTnV92o
21
21
  manta_node/infrastructure/config/__init__.py,sha256=jbRzb1c0RohpF83WOwtDpe19dBXVfbZYF3SoOaESh6k,617
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
- manta_node/infrastructure/container/docker_adapter.py,sha256=Sxprl0RpjT8epxTzYUJxSyHko3IBcus2ihneq4kRH7Q,6980
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
26
  manta_node/infrastructure/container/manager.py,sha256=L4xfVQZ7d9Qd5MQfNoxzQF_TYrWnfdrg7VH5JqRNv5s,17973
27
27
  manta_node/infrastructure/filesystem/__init__.py,sha256=nf6Fakp3wuFKjSAm_oihI6WE_yyUY6Uelr7A1GwSvXs,145
@@ -34,10 +34,10 @@ manta_node/infrastructure/metrics/__init__.py,sha256=ODGAj9s63F5jba2c3dQRMfNK6I4
34
34
  manta_node/infrastructure/metrics/collector.py,sha256=nhFPAbjA04ye3UaGN95_zdpf9hLs2lrMXwOwKlFKYsI,3070
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
- manta_node/infrastructure/mqtt/command_handler.py,sha256=jylMFdUK1k-qBYKAYZ4WdU_6MQKnwyIlvqKiBEt50Sg,17025
38
- manta_node-0.5b0.dev129.dist-info/licenses/LICENSE,sha256=P5HojupjKoAusNtHqWOvO-YFolwLFWQ7Uq0XVKK9nFQ,35291
39
- manta_node-0.5b0.dev129.dist-info/METADATA,sha256=bKPOgbN01sdm_J7DkAFww_2-wywxBqHjN7pjtBrgIpc,44654
40
- manta_node-0.5b0.dev129.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
41
- manta_node-0.5b0.dev129.dist-info/entry_points.txt,sha256=C_zcw6mdmztNxVUZGLZ83UH5TwcSuqb2C-rB4e2CQoc,56
42
- manta_node-0.5b0.dev129.dist-info/top_level.txt,sha256=nbT5J5WETuXM9UPoQckl29uUOq8wMYdRb9QDx5kAFeo,11
43
- manta_node-0.5b0.dev129.dist-info/RECORD,,
37
+ manta_node/infrastructure/mqtt/command_handler.py,sha256=2kYl-1ojbv_NbgMfoFPPTA-snWIYYXwprevurH7SF84,17094
38
+ manta_node-0.5b0.dev133.dist-info/licenses/LICENSE,sha256=P5HojupjKoAusNtHqWOvO-YFolwLFWQ7Uq0XVKK9nFQ,35291
39
+ manta_node-0.5b0.dev133.dist-info/METADATA,sha256=SDvR-7JYpCLiLHo6g4PftdKNbep5Y7vnB2aX5JWyd2A,44654
40
+ manta_node-0.5b0.dev133.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
41
+ manta_node-0.5b0.dev133.dist-info/entry_points.txt,sha256=C_zcw6mdmztNxVUZGLZ83UH5TwcSuqb2C-rB4e2CQoc,56
42
+ manta_node-0.5b0.dev133.dist-info/top_level.txt,sha256=nbT5J5WETuXM9UPoQckl29uUOq8wMYdRb9QDx5kAFeo,11
43
+ manta_node-0.5b0.dev133.dist-info/RECORD,,