mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 09:04:27 +00:00
Skip remote instances in checkAllTimeouts and EvictLRUInstance methods
This commit is contained in:
@@ -12,6 +12,11 @@ func (im *instanceManager) checkAllTimeouts() {
|
|||||||
|
|
||||||
// Identify instances that should timeout
|
// Identify instances that should timeout
|
||||||
for _, inst := range im.instances {
|
for _, inst := range im.instances {
|
||||||
|
// Skip remote instances - they are managed by their respective nodes
|
||||||
|
if inst.IsRemote() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if inst.ShouldTimeout() {
|
if inst.ShouldTimeout() {
|
||||||
timeoutInstances = append(timeoutInstances, inst.Name)
|
timeoutInstances = append(timeoutInstances, inst.Name)
|
||||||
}
|
}
|
||||||
@@ -40,6 +45,11 @@ func (im *instanceManager) EvictLRUInstance() error {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Skip remote instances - they are managed by their respective nodes
|
||||||
|
if inst.IsRemote() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if inst.GetOptions() != nil && inst.GetOptions().IdleTimeout != nil && *inst.GetOptions().IdleTimeout <= 0 {
|
if inst.GetOptions() != nil && inst.GetOptions().IdleTimeout != nil && *inst.GetOptions().IdleTimeout <= 0 {
|
||||||
continue // Skip instances without idle timeout
|
continue // Skip instances without idle timeout
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user