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.
- manta_node/infrastructure/container/docker_adapter.py +1 -1
- manta_node/infrastructure/mqtt/command_handler.py +11 -9
- {manta_node-0.5b0.dev129.dist-info → manta_node-0.5b0.dev133.dist-info}/METADATA +1 -1
- {manta_node-0.5b0.dev129.dist-info → manta_node-0.5b0.dev133.dist-info}/RECORD +8 -8
- {manta_node-0.5b0.dev129.dist-info → manta_node-0.5b0.dev133.dist-info}/WHEEL +0 -0
- {manta_node-0.5b0.dev129.dist-info → manta_node-0.5b0.dev133.dist-info}/entry_points.txt +0 -0
- {manta_node-0.5b0.dev129.dist-info → manta_node-0.5b0.dev133.dist-info}/licenses/LICENSE +0 -0
- {manta_node-0.5b0.dev129.dist-info → manta_node-0.5b0.dev133.dist-info}/top_level.txt +0 -0
|
@@ -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
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
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
|
-
|
|
319
|
-
|
|
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.
|
|
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=
|
|
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=
|
|
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.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|