mirror of
https://github.com/ollama/ollama.git
synced 2026-08-28 04:35:14 +00:00
x: configurable model load timeout (#14204)
Co-authored-by: rick <rick@frob.com.au>
This commit is contained in:
parent
fad3bcccb2
commit
59c019a6fb
1 changed files with 2 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/ollama/ollama/envconfig"
|
||||
"github.com/ollama/ollama/llm"
|
||||
"github.com/ollama/ollama/ml"
|
||||
"github.com/ollama/ollama/x/imagegen/manifest"
|
||||
|
|
@ -195,7 +196,7 @@ func (s *Server) Ping(ctx context.Context) error {
|
|||
// waitUntilRunning waits for the subprocess to be ready.
|
||||
func (s *Server) waitUntilRunning() error {
|
||||
ctx := context.Background()
|
||||
timeout := time.After(2 * time.Minute)
|
||||
timeout := time.After(envconfig.LoadTimeout())
|
||||
ticker := time.NewTicker(100 * time.Millisecond)
|
||||
defer ticker.Stop()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue