Skip to content
View as Markdown
View as Markdown

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

Function: runSystemJob()

runSystemJob(instance, spec): Promise<{ }>

Defined in: packages/b2c-tooling-sdk/src/operations/jobs/run-system-job.ts:109

Starts a system job (waiting for completion unless spec.wait === false) and returns the raw OCAPI JobExecution. Throws JobExecutionError (raw) when the job fails, or OcapiDeprecatedError when the only reachable backend is a deprecated OCAPI.

Parameters

instance

B2CInstance

spec

SystemJobSpec

Returns

Promise<{ }>

Released under the Apache-2.0 License.