Skip to content

Commit

Permalink
fix bug where an edge case exception causes a query to not be removed…
Browse files Browse the repository at this point in the history
… from active running queries
  • Loading branch information
eriktaubeneck committed Sep 26, 2024
1 parent 40e7c9b commit 679dada
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sidecar/app/query/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,11 @@ def run_query(self, query: Query):
)

self.running_queries[query.query_id] = query
query.start()
del self.running_queries[query.query_id]
try:
query.start()
finally:
# always remove this
del self.running_queries[query.query_id]

@property
def capacity_available(self):
Expand Down

0 comments on commit 679dada

Please sign in to comment.