MCPcopy Index your code
hub / github.com/coder/coder / Run

Method Run

cli/exp_scaletest.go:534–542  ·  view source on GitHub ↗

Run implements Runnable.

(ctx context.Context, _ string, _ io.Writer)

Source from the content-addressed store, hash-verified

532
533// Run implements Runnable.
534func (r *prebuildTemplateCleanupRunner) Run(ctx context.Context, _ string, _ io.Writer) error {
535 ctx, span := tracing.StartSpan(ctx)
536 defer span.End()
537
538 if err := r.client.DeleteTemplate(ctx, r.template.ID); err != nil {
539 return xerrors.Errorf("delete template %q: %w", r.template.Name, err)
540 }
541 return nil
542}
543
544// getScaletestPrebuildWorkspaces returns all prebuild workspaces that belong
545// to scaletest templates. It uses getScaletestPrebuildsTemplates to scope the

Callers

nothing calls this directly

Calls 3

StartSpanFunction · 0.92
DeleteTemplateMethod · 0.80
ErrorfMethod · 0.45

Tested by

no test coverage detected