Run implements Runnable.
(ctx context.Context, _ string, _ io.Writer)
| 532 | |
| 533 | // Run implements Runnable. |
| 534 | func (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 |
nothing calls this directly
no test coverage detected