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

OCP App SDK


OCP App SDK / JobStatus

Interface: JobStatus

Defined in: src/app/Job.ts:19

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/Job.ts:30

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/Job.ts:25

The 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.