mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
[Serve] Fix batching bug
This commit is contained in:
parent
0826f95e1c
commit
a0ba4499ac
1 changed files with 4 additions and 2 deletions
|
@ -156,9 +156,11 @@ class RayServeMixin:
|
|||
|
||||
serve_context.web = context_flags.pop()
|
||||
serve_context.batch_size = batch_size
|
||||
start_timestamp = time.time()
|
||||
# Flask requests are passed to __call__ as a list
|
||||
arg_list = [arg_list]
|
||||
|
||||
result_list = self.__call__(*args, **kwargs_list)
|
||||
start_timestamp = time.time()
|
||||
result_list = self.__call__(*arg_list, **kwargs_list)
|
||||
|
||||
self._serve_metric_latency_list.append(time.time() -
|
||||
start_timestamp)
|
||||
|
|
Loading…
Add table
Reference in a new issue