Skip to content

RenderRuns

Defined in: packages/core/src/adapters/render-runs.ts:10

Every render call a runner has in flight, by build and run id.

Several renders of one build can run at once in one process (the shards of a sharded build), and even two with the same run id (a redelivered shard). Each call registers its own entry and removes only that entry when it ends, so no render ever drops another’s handle.

T

new RenderRuns<T>(): RenderRuns<T>

RenderRuns<T>

add(buildId, runId, run): () => void

Defined in: packages/core/src/adapters/render-runs.ts:18

Register a render call. Returns the function that removes it again (call it in finally).

string

string | undefined

The request’s run id; a render without one is keyed by its build id.

T

() => void


matching(buildId, runId?): T[]

Defined in: packages/core/src/adapters/render-runs.ts:32

The runs cancel(buildId, runId) should stop: every run of the build without a run id.

string

string

T[]