Skip to content

ArtifactCacheOptions

ArtifactCacheOptions = object

Defined in: packages/app-system/src/fs/artifact-cache.ts:67

readonly optional lockWaitMs?: number

Defined in: packages/app-system/src/fs/artifact-cache.ts:80

How long to wait for a concurrent builder before building anyway. Defaults to 30 000; 0 skips the lock entirely and always builds. Raise it above the slowest expected build to make a duplicated build rare; lowering it only trades waiting for rebuilding, never correctness.


readonly optional onResolved?: (resolution) => void

Defined in: packages/app-system/src/fs/artifact-cache.ts:73

Observes every resolution, for reporting cache hits.

ArtifactResolution

void


readonly root: string

Defined in: packages/app-system/src/fs/artifact-cache.ts:69

Absolute, or relative to the current working directory.


readonly optional runId?: string

Defined in: packages/app-system/src/fs/artifact-cache.ts:71

Enables lifetime: "run". Supplied by the runner, never by the author.