Skip to content

Commit

Permalink
fix: handle multiple tables correctly (#5679)
Browse files Browse the repository at this point in the history
  • Loading branch information
MeredithAnya authored Mar 22, 2024
1 parent bbaa4a0 commit 4190ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snuba/cli/query_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ def get_queries_from_querylog(
window_hours_ago_ts = now - timedelta(hours=window_hours)
interval = timedelta(hours=1)

start_time = window_hours_ago_ts
for table in table_names:
start_time = window_hours_ago_ts
while start_time < now:
end_time = start_time + interval
logger.info(f"Fetching queries to run from {table}...")
Expand Down

0 comments on commit 4190ecd

Please sign in to comment.