Add MaxRunningInstances to InstancesConfig and implement IsRunning method

This commit is contained in:
2025-08-27 18:42:34 +02:00
parent a6e3cb4a9b
commit 615c2ac54e
3 changed files with 24 additions and 7 deletions

View File

@@ -11,6 +11,12 @@ import (
"time"
)
func (i *Process) IsRunning() bool {
i.mu.RLock()
defer i.mu.RUnlock()
return i.Running
}
// Start starts the llama server instance and returns an error if it fails.
func (i *Process) Start() error {
i.mu.Lock()