Skip to content

Commit

Permalink
pipeline: mertrics, stop
Browse files Browse the repository at this point in the history
  • Loading branch information
mkolomeychenko committed Sep 25, 2020
1 parent c04828d commit 6435baa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/classes_stats_for_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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()


Expand Down

0 comments on commit 6435baa

Please sign in to comment.