Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Ying Chen committed Mar 15, 2024
1 parent 4707e41 commit 253dfec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/promptflow/promptflow/_sdk/_service/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,12 @@ def validate_port(port, force_start):
win32api.CloseHandle(thread_handle)
else:
# Set host to localhost, only allow request from localhost.
cmd = ["waitress-serve", f"--listen=127.0.0.1:{port}", "promptflow._sdk._service.entry:get_app"]
cmd = [
"waitress-serve",
f"--listen=127.0.0.1:{port}",
"promptflow._sdk._service.entry:get_app",
f"--threads={PF_SERVICE_WORKER_NUM}",
]
subprocess.Popen(cmd, stdout=subprocess.DEVNULL, start_new_session=True)
is_healthy = check_pfs_service_status(port)
if is_healthy:
Expand Down

0 comments on commit 253dfec

Please sign in to comment.