Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / operations/jobs / waitForJobExecution

Function: waitForJobExecution()

waitForJobExecution(getExecution, jobId, executionId, options): Promise<JobExecutionInfo>

Defined in: packages/b2c-tooling-sdk/src/operations/jobs/wait-canonical.ts:40

Polls getExecution(jobId, executionId) until the job reaches a terminal state, returning the final JobExecutionInfo. Throws JobExecutionError on failure or Error on timeout.

Parameters

getExecution

(jobId, executionId) => Promise<JobExecutionInfo>

jobId

string

executionId

string

options

WaitForJobOptions = {}

Returns

Promise<JobExecutionInfo>

Released under the Apache-2.0 License.