From 6435baad8b914460f9d9bb566a7f111b9f9e8279 Mon Sep 17 00:00:00 2001 From: Maxim Kolomeychenko Date: Fri, 25 Sep 2020 16:23:54 +0300 Subject: [PATCH] pipeline: mertrics, stop --- src/classes_stats_for_images.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/classes_stats_for_images.py b/src/classes_stats_for_images.py index 40e06d7..e53a50d 100644 --- a/src/classes_stats_for_images.py +++ b/src/classes_stats_for_images.py @@ -292,6 +292,7 @@ def calc(api: sly.Api, task_id, context, state, app_logger): ] api.task.set_fields(task_id, fields) api.task.set_output_report(task_id, file_info["id"], report_name) + my_app.stop() def main(): @@ -332,7 +333,8 @@ def main(): } # Run application service - my_app.run(data=data, state=state, initial_events=[{"command": "calc"}, {"command": "stop"}]) + #my_app.run(data=data, state=state, initial_events=[{"command": "calc"}, {"command": "stop"}]) + my_app.run(data=data, state=state, initial_events=[{"command": "calc"}]) my_app.wait_all()