Documentation ¶
Overview ¶
gRPC server that accepts calls from the Python runner
Index ¶
- Variables
- func ConfigureWorkerGRPCHandler(l *zap.Logger, mux *http.ServeMux)
- func New(cfg *Config, l *zap.Logger, getLocalAddr func() string) (*sdkruntimes.Runtime, error)
- func NewDockerClient(logger *zap.Logger, logRunner, logBuildProcess bool) (*dockerClient, error)
- type Config
- type DockerRuntimeConfig
- type Export
- type Healther
- type LocalPython
- type LocalRunnerManagerConfig
- type RemoteRuntimeConfig
- type RunnerClient
- type RunnerManager
- type Version
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ConfigureWorkerGRPCHandler ¶ added in v0.10.0
Types ¶
type Config ¶ added in v0.10.2
type Config struct { RemoteRunnerEndpoints []string `koanf:"remote_runner_endpoints"` WorkerAddress string `koanf:"worker_address"` // TODO: This is a hack to prevent running configure on pythonrt in each test // which currently install venv everytime and takes a really long time // need to find a way to share the venv once for all tests LazyLoadLocalVEnv bool `koanf:"lazy_load_local_venv"` LogRunnerCode bool `koanf:"log_runner_code"` LogBuildCode bool `koanf:"log_build_code"` RunnerType string `koanf:"runner_type"` }
type DockerRuntimeConfig ¶ added in v0.10.2
type Healther ¶ added in v0.10.0
type Healther interface {
Health(ctx context.Context, in *userCode.RunnerHealthRequest, opts ...grpc.CallOption) (*userCode.RunnerHealthResponse, error)
}
type LocalPython ¶ added in v0.10.0
type LocalPython struct {
// contains filtered or unexported fields
}
func (*LocalPython) Close ¶ added in v0.10.0
func (r *LocalPython) Close() error
func (*LocalPython) Health ¶ added in v0.10.0
func (r *LocalPython) Health() error
type LocalRunnerManagerConfig ¶ added in v0.10.0
type RemoteRuntimeConfig ¶ added in v0.10.0
type RunnerClient ¶ added in v0.10.1
type RunnerClient struct { userCode.RunnerServiceClient // contains filtered or unexported fields }
func (*RunnerClient) Close ¶ added in v0.10.1
func (c *RunnerClient) Close() error
type RunnerManager ¶ added in v0.10.0
type RunnerManager interface { Start(ctx context.Context, sessionID sdktypes.SessionID, buildArtifacts []byte, vars map[string]string) (string, *RunnerClient, error) RunnerHealth(ctx context.Context, runnerID string) error Stop(ctx context.Context, runnerID string) error Health(ctx context.Context) error }
Click to show internal directories.
Click to hide internal directories.