Skip to content

Commit

Permalink
Workaround for occasional crash
Browse files Browse the repository at this point in the history
  • Loading branch information
gareth-ellis committed Mar 8, 2024
1 parent a2c09a7 commit 62e2309
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion esrally/driver/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 62e2309

Please sign in to comment.