manta-node 0.5b0.dev182__py3-none-any.whl → 0.5b0.dev188__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/mqtt/command_handler.py +7 -2
- manta_node/task_manager.py +0 -1
- {manta_node-0.5b0.dev182.dist-info → manta_node-0.5b0.dev188.dist-info}/METADATA +1 -1
- {manta_node-0.5b0.dev182.dist-info → manta_node-0.5b0.dev188.dist-info}/RECORD +8 -8
- {manta_node-0.5b0.dev182.dist-info → manta_node-0.5b0.dev188.dist-info}/WHEEL +0 -0
- {manta_node-0.5b0.dev182.dist-info → manta_node-0.5b0.dev188.dist-info}/entry_points.txt +0 -0
- {manta_node-0.5b0.dev182.dist-info → manta_node-0.5b0.dev188.dist-info}/licenses/LICENSE +0 -0
- {manta_node-0.5b0.dev182.dist-info → manta_node-0.5b0.dev188.dist-info}/top_level.txt +0 -0
|
@@ -257,9 +257,9 @@ class CommandHandler(TaskManager, Collector, MqttBase):
|
|
|
257
257
|
updated = await self.check_tasks()
|
|
258
258
|
if len(updated) > 0:
|
|
259
259
|
for task_progression in updated:
|
|
260
|
-
if task_progression.
|
|
260
|
+
if task_progression.is_finished_task():
|
|
261
261
|
self.tracer.info(
|
|
262
|
-
f"Task {task_progression.task_id}
|
|
262
|
+
f"Task {task_progression.task_id} {task_progression.task_status}, collecting logs"
|
|
263
263
|
)
|
|
264
264
|
try:
|
|
265
265
|
date, processed_logs = await self.get_task_logs(
|
|
@@ -269,6 +269,11 @@ class CommandHandler(TaskManager, Collector, MqttBase):
|
|
|
269
269
|
f"Sending logs to the Manager for task {task_progression.task_id}"
|
|
270
270
|
)
|
|
271
271
|
await self.send_task_logs(date, processed_logs)
|
|
272
|
+
task_progression.task_status = TaskStatus.STOPPED
|
|
273
|
+
self.tracer.info(
|
|
274
|
+
f"Task {task_progression.task_id} marked as {task_progression.task_status} "
|
|
275
|
+
f"after log collection"
|
|
276
|
+
)
|
|
272
277
|
except MantaGRPCError as e:
|
|
273
278
|
self.tracer.exception(
|
|
274
279
|
f"gRPCError when updating finished tasks: {e}"
|
manta_node/task_manager.py
CHANGED
|
@@ -186,7 +186,6 @@ class TaskManager(ContainerManager, ImageExecutor):
|
|
|
186
186
|
# Send logs of the finished tasks
|
|
187
187
|
updated = []
|
|
188
188
|
for task_progression in self.tasks.finished_tasks():
|
|
189
|
-
task_progression.task_status = TaskStatus.STOPPED
|
|
190
189
|
self.tracer.info(
|
|
191
190
|
f"Task {task_progression.task_id} finished: {task_progression.task_status}"
|
|
192
191
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: manta_node
|
|
3
|
-
Version: 0.5b0.
|
|
3
|
+
Version: 0.5b0.dev188
|
|
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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
manta_node/__init__.py,sha256=bgGWXH3yQVhNf0v1ZGUBAy5Y51fqb0Y-EaLnocbcino,153
|
|
2
2
|
manta_node/__main__.py,sha256=0VzbY1KfezaARZDuCBc7Th1GO_-BnKTK8eDEXhgP5J4,1731
|
|
3
3
|
manta_node/node_orchestrator.py,sha256=0VMBsZSMQiIe9L-Bd7Jn4avNpNyDCMa1kyPSTgRiOes,17336
|
|
4
|
-
manta_node/task_manager.py,sha256=
|
|
4
|
+
manta_node/task_manager.py,sha256=awYWbpcKwQmwEf7cHy3OXE2HhJgpLsDWIvrRM_jw20k,24459
|
|
5
5
|
manta_node/tasks.py,sha256=aj2AUCgsfkKpP2_sBUudP_TdkwVDMn_q2r2Au0YnTWQ,6788
|
|
6
6
|
manta_node/utils.py,sha256=gkYRB7fylk1jy1sm7nKU7o8eadGxn0AX4IjCHT6Wzuw,1179
|
|
7
7
|
manta_node/cli/__init__.py,sha256=arzO3mXDJ-E2yeeytbZfN7mCswwxdQ43_QjyeL2E5yE,134
|
|
@@ -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=njy0q-GP6Xa3WL3nSg62p02h8fS0yRpvK8spy5r5-uw,17401
|
|
38
|
+
manta_node-0.5b0.dev188.dist-info/licenses/LICENSE,sha256=P5HojupjKoAusNtHqWOvO-YFolwLFWQ7Uq0XVKK9nFQ,35291
|
|
39
|
+
manta_node-0.5b0.dev188.dist-info/METADATA,sha256=QmqgS5rEnGYahP4yWOKzURKBxuU4LTONqaqHWko3OUs,44654
|
|
40
|
+
manta_node-0.5b0.dev188.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
41
|
+
manta_node-0.5b0.dev188.dist-info/entry_points.txt,sha256=C_zcw6mdmztNxVUZGLZ83UH5TwcSuqb2C-rB4e2CQoc,56
|
|
42
|
+
manta_node-0.5b0.dev188.dist-info/top_level.txt,sha256=nbT5J5WETuXM9UPoQckl29uUOq8wMYdRb9QDx5kAFeo,11
|
|
43
|
+
manta_node-0.5b0.dev188.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|