Skip to content

Commit

Permalink
Fix service collection
Browse files Browse the repository at this point in the history
* Use the correct graph to collect service
  • Loading branch information
hjk1030 committed May 15, 2024
1 parent 7e04e5b commit 7bed7ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aidb/engine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ async def clear_ml_cache(self, service_name_list = None):
# Get all the services that need to be cleared because of foreign key constraints
for bounded_service in service_ordering:
if bounded_service.service.name in service_name_list:
for in_edge in self._config.table_graph.in_edges(bounded_service.service.name):
service_name_list.add(in_edge[0])
for input_column in bounded_service.binding.input_columns:
for in_edge in self._config.inference_graph.in_edges(input_column):
service_name_list.add(in_edge.bound_service.service.name)

# Clear the services in reversed topological order
for bounded_service in reversed(service_ordering):
Expand Down

0 comments on commit 7bed7ee

Please sign in to comment.