Skip to content

Commit

Permalink
chore: fix rate limit error in bq load (#1473)
Browse files Browse the repository at this point in the history
The step to record publish metrics in BQ was hitting a rate limit, so
doing a simple random sleep of up to 2 minutes
  • Loading branch information
drstrangelooker authored Jun 13, 2024
1 parent d509df3 commit 15ea344
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release-metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ jobs:
draft,
prerelease
}'' $GITHUB_EVENT_PATH > releases.json'

# Avoid rate limit exceeded error in bq load step
- name: Sleep for random time
run: sleep $((RANDOM % 120))

- run: bq load --source_format=NEWLINE_DELIMITED_JSON metrics.releases releases.json

0 comments on commit 15ea344

Please sign in to comment.