Skip to content

CdpLeasedOptions

Defined in: packages/runner-puppeteer/src/remote/cdp.ts:46

A service that must be woken, started or chosen per connection: connect receives the run’s context (buildId, runId, shardIndex, purpose, attempt, signal) and returns { endpoint, headers, lease }; release gets the lease back once, when the render ends.

  • CdpBase

TLease

connect: (context) => RemoteLeasedConnection<TLease> | Promise<RemoteLeasedConnection<TLease>>

Defined in: packages/runner-puppeteer/src/remote/cdp.ts:47

RemoteConnectContext

RemoteLeasedConnection<TLease> | Promise<RemoteLeasedConnection<TLease>>


optional connectTimeoutMs?: number

Defined in: packages/runner-puppeteer/src/remote/cdp.ts:28

How long one connect attempt waits in ms (default 30 000).

CdpBase.connectTimeoutMs


optional endpoint?: undefined

Defined in: packages/runner-puppeteer/src/remote/cdp.ts:53


optional engines?: readonly BrowserName[]

Defined in: packages/runner-puppeteer/src/remote/cdp.ts:24

Engines to offer (default chromium; chrome when the service is real Chrome).

CdpBase.engines


optional headers?: undefined

Defined in: packages/runner-puppeteer/src/remote/cdp.ts:54


name: string

Defined in: packages/runner-puppeteer/src/remote/cdp.ts:20

The target name half (chromium@<name>): lowercase letters, digits and hyphens, at most 32.

CdpBase.name


optional platform?: string

Defined in: packages/runner-puppeteer/src/remote/cdp.ts:26

OS the service runs on, reported when the page cannot tell.

CdpBase.platform


optional release?: (lease, info) => void | Promise<void>

Defined in: packages/runner-puppeteer/src/remote/cdp.ts:48

TLease

RemoteReleaseInfo

void | Promise<void>


optional retry?: object

Defined in: packages/runner-puppeteer/src/remote/cdp.ts:50

Retries after the first connect attempt (default 3) and the first backoff in ms (default 500).

optional attempts?: number

optional backoffMs?: number


optional sessions?: number | (() => number)

Defined in: packages/runner-puppeteer/src/remote/cdp.ts:22

Parallel pages the service allows (default 1: set it to the plan’s cap). A function is read live.

CdpBase.sessions


optional timeouts?: object

Defined in: packages/runner-puppeteer/src/remote/cdp.ts:52

acquireMs bounds connect, connectMs the handshake, releaseMs release (all default 30 000).

optional acquireMs?: number

optional connectMs?: number

optional releaseMs?: number