Allow cold local cognition to finish
This commit is contained in:
@@ -115,7 +115,7 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
cognitiveClient, err := newCognitiveInterpretationClient(envOr("COGNITIVE_RUNTIME_URL", "http://cognitive-worker:8083"), &http.Client{Timeout: 20 * time.Second})
|
cognitiveClient, err := newCognitiveInterpretationClient(envOr("COGNITIVE_RUNTIME_URL", "http://cognitive-worker:8083"), &http.Client{Timeout: 90 * time.Second})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,10 @@ func main() {
|
|||||||
// local cognition. Keep the browser gateway alive long enough to return
|
// local cognition. Keep the browser gateway alive long enough to return
|
||||||
// the completed response instead of converting a successful core 201
|
// the completed response instead of converting a successful core 201
|
||||||
// into a misleading 502.
|
// into a misleading 502.
|
||||||
&http.Client{Timeout: 30 * time.Second},
|
// A cold local model may need more than one short HTTP round-trip to
|
||||||
|
// load on CPU. Keep the browser gateway aligned with the cognition
|
||||||
|
// deadline instead of turning that wait into a false unavailable reply.
|
||||||
|
&http.Client{Timeout: 90 * time.Second},
|
||||||
envOr("COGNITIVE_RUNTIME_URL", "http://cognitive-worker:8083"),
|
envOr("COGNITIVE_RUNTIME_URL", "http://cognitive-worker:8083"),
|
||||||
envOr("AGENT_WORKER_URL", "http://agent-worker:8090"),
|
envOr("AGENT_WORKER_URL", "http://agent-worker:8090"),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user