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

Method Run

cli/exp_scaletest.go:509–522  ·  view source on GitHub ↗

Run implements Runnable.

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

Source from the content-addressed store, hash-verified

507
508// Run implements Runnable.
509func (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.

Callers

nothing calls this directly

Calls 3

StartSpanFunction · 0.92
DeleteUserMethod · 0.80
ErrorfMethod · 0.45

Tested by

no test coverage detected