Skip to content

Commit

Permalink
fix: worker number of start-http-server (#4462)
Browse files Browse the repository at this point in the history
  • Loading branch information
bojiang committed Jan 31, 2024
1 parent 9d5264f commit b23185b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/_bentoml_impl/server/serving.py
Expand Up @@ -185,11 +185,11 @@ def serve_http(
allocator = ResourceAllocator()
if dependency_map is None:
dependency_map = {}
if service_name:
svc = svc.find_dependent(service_name)
num_workers, worker_envs = allocator.get_worker_env(svc)
with tempfile.TemporaryDirectory(prefix="bentoml-uds-") as uds_path:
if service_name:
svc = svc.find_dependent(service_name)
elif not development_mode:
if not service_name and not development_mode:
with contextlib.ExitStack() as port_stack:
for name, dep_svc in svc.all_services().items():
if name == svc.name:
Expand Down

0 comments on commit b23185b

Please sign in to comment.