forked from phoenix/litellm-mirror
(fix) locust load test
This commit is contained in:
parent
f88be8d622
commit
07e3c19d55
1 changed files with 0 additions and 16 deletions
16
.github/workflows/locustfile.py
vendored
16
.github/workflows/locustfile.py
vendored
|
@ -34,25 +34,9 @@ class MyUser(HttpUser):
|
|||
start_time = time.time()
|
||||
response = self.client.get("health/readiness")
|
||||
response_time = time.time() - start_time
|
||||
if response_time > 1:
|
||||
events.request_failure.fire(
|
||||
request_type="GET",
|
||||
name="health/readiness",
|
||||
response_time=response_time,
|
||||
exception=None,
|
||||
response=response,
|
||||
)
|
||||
|
||||
@task(10)
|
||||
def health_liveliness(self):
|
||||
start_time = time.time()
|
||||
response = self.client.get("health/liveliness")
|
||||
response_time = time.time() - start_time
|
||||
if response_time > 1:
|
||||
events.request_failure.fire(
|
||||
request_type="GET",
|
||||
name="health/liveliness",
|
||||
response_time=response_time,
|
||||
exception=None,
|
||||
response=response,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue