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

OCP App SDK / JobStatus

JobStatus

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

Hierarchy

Index

Properties

Properties

complete

boolean

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

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

state

ValueHash

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.

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