mirror of
https://github.com/tiennm99/litellm.git
synced 2026-06-25 05:07:03 +00:00
(fix) locust load test
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user