Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev Guide
Dev GuideUser GuidesGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

SourceJobStatus

OCP App SDK


OCP App SDK / SourceJobStatus

Interface: SourceJobStatus

Defined in: src/app/SourceJob.ts:26

An object with some restrictions. An interface that follows the ValueHash interface
can be safely written to any storage option.

Extends

Indexable

[field: string]: undefined | Value | Value[]

Properties

complete

complete: boolean

Defined in: src/app/SourceJob.ts:37

Set to true when the job is complete.
If the complete is false in the returned job status, perform will be called again.


state

state: ValueHash

Defined in: src/app/SourceJob.ts:32

The source job's state. Store any state you need to continue on the next perform loop.
The state is expected to change regularly. If your job runs for a long time without
the state changing (hours not minutes), it may be considered stalled and could be terminated.