forked from phoenix/litellm-mirror
fix load test
This commit is contained in:
parent
fe8b7f6b4a
commit
ec2e846878
2 changed files with 10 additions and 0 deletions
1
.github/workflows/load_test.yml
vendored
1
.github/workflows/load_test.yml
vendored
|
@ -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
|
||||
|
|
9
.github/workflows/redeploy_proxy.py
vendored
9
.github/workflows/redeploy_proxy.py
vendored
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue