Dev Guide
Dev GuideUser GuidesLegal TermsGitHubDevCommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

OCP App SDK / JobApi

JobApi

Interface to trigger and monitor jobs

Index

Methods

Methods

getDetail()

Signature

getDetail(jobId: string): Promise<JobDetail>;

Parameters

NameType
jobIdstring

Returns

Promise<JobDetail>

Defined in: src/jobs/JobApi.ts:73

getStatus()

Signature

getStatus(jobId: string): Promise<JobRunStatus>;

Parameters

NameType
jobIdstring

Returns

Promise<JobRunStatus>

Defined in: src/jobs/JobApi.ts:74

trigger()

Signature

trigger(jobName: string, parameters: ValueHash): Promise<JobDetail>;

Parameters

NameType
jobNamestring
parametersValueHash

Returns

Promise<JobDetail>

Defined in: src/jobs/JobApi.ts:72