Skip to content
View as Markdown
View as Markdown

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

Function: waitForClones()

waitForClones(client, options): Promise<CloneBatchMemberStatus[]>

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

Waits for a batch of sandbox clones (created via 1 to many cloning) to all reach a terminal state by polling each clone's status against the ODS API.

Polls at pollIntervalSeconds until every clone in cloneIds reaches COMPLETED or FAILED, or the configured timeout is exceeded. An initial poll delay equal to pollIntervalSeconds is applied before the first status check.

Parameters

client

OdsClient

ODS client for API calls

options

WaitForClonesOptions

Polling configuration options

Returns

Promise<CloneBatchMemberStatus[]>

Promise that resolves with the final status of every clone once all reach COMPLETED

Throws

If the timeout is exceeded before all clones complete

Throws

If an API request fails

Throws

If one or more clones enter the FAILED state

Released under the Apache-2.0 License.