From 62e2309644f5d4de6d557329a5b7ec2438bf21e3 Mon Sep 17 00:00:00 2001 From: Gareth Ellis Date: Fri, 8 Mar 2024 22:03:15 +0100 Subject: [PATCH] Workaround for occasional crash --- esrally/driver/driver.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/esrally/driver/driver.py b/esrally/driver/driver.py index 661ba5835..1bb552e20 100644 --- a/esrally/driver/driver.py +++ b/esrally/driver/driver.py @@ -1936,7 +1936,10 @@ async def __call__(self, *args, **kwargs): request_end = request_context.request_end processing_end = time.perf_counter() - service_time = request_end - request_start + if isinstance(request_end, float) and isinstance(request_start, float): + service_time = request_end - request_start + else: + service_time = -1 processing_time = processing_end - processing_start time_period = request_end - total_start self.schedule_handle.after_request(processing_end, total_ops, total_ops_unit, request_meta_data)