Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / operations/ods / waitForClone

Function: waitForClone()

waitForClone(client, options): Promise<void>

Defined in: packages/b2c-tooling-sdk/src/operations/ods/wait-for-clone.ts:131

Waits for a sandbox clone to reach COMPLETED or FAILED state by polling its status against the ODS API.

Polls at pollIntervalSeconds until the clone completes, the configured timeout is exceeded, or the clone enters a failed state. An initial poll delay equal to pollIntervalSeconds is applied before the first status check.

Parameters

client

OdsClient

ODS client for API calls

options

WaitForCloneOptions

Polling configuration options

Returns

Promise<void>

Promise that resolves when the clone reaches COMPLETED

Throws

If the timeout is exceeded before completion

Throws

If the API request fails

Throws

If the clone enters the FAILED state

Released under the Apache-2.0 License.