Cleanup implements Cleanable by wrapping CleanupRunner.
(ctx context.Context, id string, w io.Writer)
| 173 | |
| 174 | // Cleanup implements Cleanable by wrapping CleanupRunner. |
| 175 | func (r *Runner) Cleanup(ctx context.Context, id string, w io.Writer) error { |
| 176 | return (&CleanupRunner{ |
| 177 | client: r.client, |
| 178 | workspaceID: r.workspaceID, |
| 179 | }).Run(ctx, id, w) |
| 180 | } |
| 181 | |
| 182 | func waitForBuild(ctx context.Context, w io.Writer, client *codersdk.Client, buildID uuid.UUID) error { |
| 183 | ctx, span := tracing.StartSpan(ctx) |