runtimes

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configs = configset.Set[Config]{
	Default: &Config{
		EnableRemoteRunner: false,
	},
	Test: &Config{
		LazyLoadLocalVEnv: true,
	},
	Dev: &Config{
		LogRunnerCode: true,
	},
}

Functions

func New

func New(cfg *Config, l *zap.Logger, svc httpsvc.Svc) (sdkservices.Runtimes, error)

Types

type Config added in v0.10.0

type Config struct {
	RemoteRunnerEndpoints []string `koanf:"remote_runner_endpoints"`
	//TODO: maybe should be runner type which can be local/docker/remote/ ?
	EnableRemoteRunner bool   `koanf:"enable_remote_runner"`
	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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL