MCPcopy Create free account
hub / github.com/coder/coder / SetupPartitions

Function SetupPartitions

scaletest/dynamicparameters/template.go:139–156  ·  view source on GitHub ↗
(
	ctx context.Context, client SDKForDynamicParametersSetup,
	orgID uuid.UUID, templateName string, provisionerTags map[string]string,
	numEvals int64,
	logger slog.Logger,
)

Source from the content-addressed store, hash-verified

137}
138
139func SetupPartitions(
140 ctx context.Context, client SDKForDynamicParametersSetup,
141 orgID uuid.UUID, templateName string, provisionerTags map[string]string,
142 numEvals int64,
143 logger slog.Logger,
144) ([]Partition, error) {
145 p := &partitioner{
146 ctx: ctx,
147 client: client,
148 orgID: orgID,
149 templateName: templateName,
150 provisionerTags: provisionerTags,
151 numEvals: numEvals,
152 logger: logger,
153 clock: quartz.NewReal(),
154 }
155 return p.run()
156}
157
158func (p *partitioner) run() ([]Partition, error) {
159 var (

Callers 1

Calls 1

runMethod · 0.95

Tested by

no test coverage detected