Skip to content

Commit 4dc2f89

Browse files
mikekgfbJack-Khuu
andauthored
Avoid curl fails due to server startup time in CI(#1418)
Add sleep after server startup to make sure server ready prior to client request via `curl` Co-authored-by: Jack-Khuu <[email protected]>
1 parent 7b86dc3 commit 4dc2f89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ python3 torchchat.py server llama3.1
231231
```
232232
[skip default]: end
233233

234-
[shell default]: python3 torchchat.py server llama3.1 & server_pid=$!
234+
[shell default]: python3 torchchat.py server llama3.1 & server_pid=$! ; sleep 90 # wait for server to be ready to accept requests
235235

236236
In another terminal, query the server using `curl`. Depending on the model configuration, this query might take a few minutes to respond.
237237

0 commit comments

Comments
 (0)