Skip to content

Commit

Permalink
increase makeEmbedRequest and docker-compose health timeouts (#93)
Browse files Browse the repository at this point in the history
* increase makeEmbedRequest context timeout to 10s
* increase NLP docker-compose health timeouts
  • Loading branch information
danielchalef authored Jun 16, 2023
1 parent 4c52d22 commit c986333
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ services:
- zep-network
healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8080' || exit 1
interval: 5s
timeout: 10s
retries: 3
start_period: 10s
interval: 10s
timeout: 5s
retries: 5
start_period: 45s
ports:
- "8080:8080"
zep:
Expand Down Expand Up @@ -70,4 +70,4 @@ configs:
file: ./config.yaml
networks:
zep-network:
driver: bridge
driver: bridge
2 changes: 1 addition & 1 deletion pkg/llms/embeddings_local.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func embedTextsLocal(
}

func makeEmbedRequest(ctx context.Context, url string, jsonBody []byte) ([]byte, error) {
httpClient := &http.Client{Timeout: 5 * time.Second}
httpClient := &http.Client{Timeout: 10 * time.Second}
req, err := http.NewRequestWithContext(ctx, http.MethodPost, url, bytes.NewBuffer(jsonBody))
if err != nil {
return nil, err
Expand Down

0 comments on commit c986333

Please sign in to comment.