Skip to content

removeJobScratch

removeJobScratch(scratchDir, projectId, buildId, logger?): Promise<void>

Defined in: packages/core/src/capture/scratch.ts:73

Remove the scratch of the build’s own job (the plan, or the whole build when it is not sharded) and the build directory too if nothing else is left in it.

Shards live in their own shards/ directory beside job/, so this can never reach one: the plan hands its shards to the queue before it cleans up, and a worker may already be extracting.

string

string

string

Logger

Promise<void>