From ec2e846878411c281a1e42b7942d266593e1e5af Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 25 May 2024 17:36:42 -0700 Subject: [PATCH] fix load test --- .github/workflows/load_test.yml | 1 + .github/workflows/redeploy_proxy.py | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/load_test.yml b/.github/workflows/load_test.yml index e62b6cf08..cdaffa328 100644 --- a/.github/workflows/load_test.yml +++ b/.github/workflows/load_test.yml @@ -29,6 +29,7 @@ jobs: python ".github/workflows/redeploy_proxy.py" env: LOAD_TEST_REDEPLOY_URL1: ${{ secrets.LOAD_TEST_REDEPLOY_URL1 }} + LOAD_TEST_REDEPLOY_URL2: ${{ secrets.LOAD_TEST_REDEPLOY_URL2 }} working-directory: ${{ github.workspace }} - name: Run Load Test id: locust_run diff --git a/.github/workflows/redeploy_proxy.py b/.github/workflows/redeploy_proxy.py index a7336500c..ed46bef73 100644 --- a/.github/workflows/redeploy_proxy.py +++ b/.github/workflows/redeploy_proxy.py @@ -5,7 +5,16 @@ redeploy_proxy.py import os import requests +import time # send a get request to this endpoint deploy_hook1 = os.getenv("LOAD_TEST_REDEPLOY_URL1") response = requests.get(deploy_hook1, timeout=20) + + +deploy_hook2 = os.getenv("LOAD_TEST_REDEPLOY_URL2") +response = requests.get(deploy_hook2, timeout=20) + +print("SENT GET REQUESTS to re-deploy proxy") +print("sleeeping.... for 60s") +time.sleep(60)