Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
elic-eon committed Nov 4, 2024
1 parent 0704962 commit 97929aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions metaphor/bigquery/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ def _fetch_query_logs(self, project_id: str) -> Iterator[QueryLog]:
current_time = time.time()
elapsed_time = current_time - last_time
wait_time = (60 / self._rate_limit) - elapsed_time
last_time = current_time
if wait_time > 0:
time.sleep(wait_time)

Check warning on line 332 in metaphor/bigquery/extractor.py

View check run for this annotation

Codecov / codecov/patch

metaphor/bigquery/extractor.py#L327-L332

Added lines #L327 - L332 were not covered by tests

Expand Down

0 comments on commit 97929aa

Please sign in to comment.