From 4e853b6517597b722b0b26ffe896a358e210d24f Mon Sep 17 00:00:00 2001 From: Xiang Zhang Date: Tue, 20 Feb 2024 16:40:25 +0800 Subject: [PATCH] add random sleep before create cluster to avoid parallel createCluster API rate limit (#56) --- .github/workflows/create-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/create-test.yml b/.github/workflows/create-test.yml index 15e8eb5..0bdb1dc 100644 --- a/.github/workflows/create-test.yml +++ b/.github/workflows/create-test.yml @@ -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="$?"