Add LastRequestTime method and LRU eviction logic for instance management

This commit is contained in:
2025-08-30 23:59:37 +02:00
parent 4581d67165
commit c1fa0faf4b
3 changed files with 35 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ type InstanceManager interface {
StartInstance(name string) (*instance.Process, error)
IsMaxRunningInstancesReached() bool
StopInstance(name string) (*instance.Process, error)
EvictLRUInstance() error
RestartInstance(name string) (*instance.Process, error)
GetInstanceLogs(name string) (string, error)
Shutdown()