Run implements Runnable.
(ctx context.Context, _ string, _ io.Writer)
| 507 | |
| 508 | // Run implements Runnable. |
| 509 | func (r *userCleanupRunner) Run(ctx context.Context, _ string, _ io.Writer) error { |
| 510 | if r.userID == uuid.Nil { |
| 511 | return nil |
| 512 | } |
| 513 | ctx, span := tracing.StartSpan(ctx) |
| 514 | defer span.End() |
| 515 | |
| 516 | err := r.client.DeleteUser(ctx, r.userID) |
| 517 | if err != nil { |
| 518 | return xerrors.Errorf("delete user %q: %w", r.userID, err) |
| 519 | } |
| 520 | |
| 521 | return nil |
| 522 | } |
| 523 | |
| 524 | // prebuildTemplateCleanupRunner deletes a single scaletest prebuilds template. |
| 525 | // All prebuild workspaces must be deleted before this runs. |
nothing calls this directly
no test coverage detected