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.
Parameters
Section titled “Parameters”scratchDir
Section titled “scratchDir”string
projectId
Section titled “projectId”string
buildId
Section titled “buildId”string
logger?
Section titled “logger?”Returns
Section titled “Returns”Promise<void>