Skip to content

Commit

Permalink
add random sleep before create cluster to avoid parallel createCluste…
Browse files Browse the repository at this point in the history
…r API rate limit (#56)
  • Loading branch information
zhangyangyu committed Feb 20, 2024
1 parent adb3a12 commit 4e853b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/create-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
- name: Create cluster
run: |
set +e
sleep $((RANDOM % 10))
PROJECT_ID=1372813089447741295
result=`ticloud cluster create -p $PROJECT_ID --cluster-name ${{ matrix.region }} --cloud-provider AWS -r ${{ matrix.region }} --root-password ${{ secrets.TIDB_CLOUD_PASSWORD }} --cluster-type SERVERLESS`
exitcode="$?"
Expand Down

0 comments on commit 4e853b6

Please sign in to comment.