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.
Extends
Section titled “Extends”CdpBase
Type Parameters
Section titled “Type Parameters”TLease
Section titled “TLease”TLease
Properties
Section titled “Properties”connect
Section titled “connect”connect: (
context) =>RemoteLeasedConnection<TLease> |Promise<RemoteLeasedConnection<TLease>>
Defined in: packages/runner-puppeteer/src/remote/cdp.ts:47
Parameters
Section titled “Parameters”context
Section titled “context”Returns
Section titled “Returns”RemoteLeasedConnection<TLease> | Promise<RemoteLeasedConnection<TLease>>
connectTimeoutMs?
Section titled “connectTimeoutMs?”
optionalconnectTimeoutMs?:number
Defined in: packages/runner-puppeteer/src/remote/cdp.ts:28
How long one connect attempt waits in ms (default 30 000).
Inherited from
Section titled “Inherited from”CdpBase.connectTimeoutMs
endpoint?
Section titled “endpoint?”
optionalendpoint?:undefined
Defined in: packages/runner-puppeteer/src/remote/cdp.ts:53
engines?
Section titled “engines?”
optionalengines?: readonlyBrowserName[]
Defined in: packages/runner-puppeteer/src/remote/cdp.ts:24
Engines to offer (default chromium; chrome when the service is real Chrome).
Inherited from
Section titled “Inherited from”CdpBase.engines
headers?
Section titled “headers?”
optionalheaders?: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.
Inherited from
Section titled “Inherited from”CdpBase.name
platform?
Section titled “platform?”
optionalplatform?:string
Defined in: packages/runner-puppeteer/src/remote/cdp.ts:26
OS the service runs on, reported when the page cannot tell.
Inherited from
Section titled “Inherited from”CdpBase.platform
release?
Section titled “release?”
optionalrelease?: (lease,info) =>void|Promise<void>
Defined in: packages/runner-puppeteer/src/remote/cdp.ts:48
Parameters
Section titled “Parameters”TLease
Returns
Section titled “Returns”void | Promise<void>
retry?
Section titled “retry?”
optionalretry?: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).
attempts?
Section titled “attempts?”
optionalattempts?:number
backoffMs?
Section titled “backoffMs?”
optionalbackoffMs?:number
sessions?
Section titled “sessions?”
optionalsessions?: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.
Inherited from
Section titled “Inherited from”CdpBase.sessions
timeouts?
Section titled “timeouts?”
optionaltimeouts?:object
Defined in: packages/runner-puppeteer/src/remote/cdp.ts:52
acquireMs bounds connect, connectMs the handshake, releaseMs release (all default 30 000).
acquireMs?
Section titled “acquireMs?”
optionalacquireMs?:number
connectMs?
Section titled “connectMs?”
optionalconnectMs?:number
releaseMs?
Section titled “releaseMs?”
optionalreleaseMs?:number