Files
Kevin9703 3b51c4d79c fix(local-runtime): recover stopped plugin instances (#766)
* fix(local-runtime): recover stopped plugin instances

* fix(local-runtime): remove unnecessary stdin write lock

---------

Co-authored-by: Kevin9703 <Kevin9703@users.noreply.github.com>
Co-authored-by: kevin.zhang <kevin.zhang@ximalaya.com>
2026-07-06 14:34:21 +08:00

25 lines
746 B
Go

package local_runtime
import "errors"
var (
// Runtime could not find a proper instance to execute the request
// Usually, it means no instance was ready to accept requests
ErrNoProperInstance = errors.New("no proper instance")
// Runtime could not find the sessionId in the mapping
ErrSessionNotFound = errors.New("session not found")
// Runtime already started
ErrRuntimeAlreadyStarted = errors.New("runtime already started")
// Runtime already stopped
ErrRuntimeAlreadyStopped = errors.New("runtime already stopped")
// Runtime is not active
ErrRuntimeNotActive = errors.New("runtime is not active")
// Instance is already stopped and cannot accept new requests
ErrInstanceStopped = errors.New("plugin instance stopped")
)