Interfaces
- ITaskResult — The
ITaskResultinterface contract is used to post updates about Task execution and to finally indicate success or failure to active Task Observers. It is returned as param toITaskObserver::onUpdate. The Task Result is delivered to all observer objects registered with the Task Manager at the time a result is posted. Task Results are not cached by the Task Manager. - ITaskResultBuilder — The
ITaskResultBuilderis used to create an object that conforms toITaskResult. TheITaskResultcan then be submitted to post updates about Task execution and to indicate success or failure to the TaskManager. - ITaskObserver — The
ITaskObserverallows callers to get notified of updates in Task execution. It can signal intermediate results, final results as well as errors returned by the Task handler and errors in execution of the Task. Task Observers offer the convenience to react to a Task Result immediately. However, they are not a substitute for persisting results in use cases where the result must be consumed by another part of the app that may not be running at that instant. Note thatITaskObservercallbacks may execute on a thread which may be different from the main thread of the app. - ITaskStatus — The
ITaskStatusprovides information about a submitted Task. - IRetryPolicy — The
IRetryPolicyis the retry preference when Task fails. Use theIRetryPolicyBuilderto create an object that conforms toIRetryPolicy. - IRetryPolicyBuilder — The
IRetryPolicyBuilderallows callers to express retry preferences for Task failures. The retry policy consists of a minimum delay between successive retries and a count of retries to perform. A Task is markedTaskState::FAILEDif retries are exhausted. It remains inTaskState::PENDINGas it waits for the next execution opportunity. - ITaskRequest — The
ITaskRequestdescribes the execution parameters of a Task. Use theITaskRequestBuilderto create an object that conforms toITaskRequest. - ITaskRequestBuilder — The
ITaskRequestBuilderallows callers to encode execution parameters of a Task. A TaskRequest consists of the name of the Task handler to run, an unique id associated with the submission, zero or more constraint sets and an optional persistence flag. - ITaskRegistration — The
ITaskRegistrationrepresents a submitted task and offers operations to update, query information, and attach observers to the submitted task. - TaskExecutionInfo — Identification of a running Task instance delivered to its Task lifecycle component.
- ITaskManager — The
ITaskManageroffers operations for submitting and cancelling of Tasks as well as querying status. - ITaskManager2 — Extension of
ITaskManagerwith operations scoped to a running Task instance. - ITimeProperties — The
ITimePropertiesdescribes the time constraint for task execution. Use theITimePropertiesBuilderto create an object that conforms toITimeProperties. - ITimePropertiesBuilder — The
ITimePropertiesBuilderallows callers to create an instanceITimeProperties. The constraint can be a combination of a delay or start time, an execution window and a repetition interval. A time window defines a specific start time and a duration inside of which task execution must begin. - IKeplerTasksModule — The
IKeplerTasksModuleis the top-level interface that can be discovered via Omnikit. The interface can be used to build objects implementing other interfaces in this package that are required to be non singleton.
Enumerations
- TaskState —
TaskStateidentifies the state of the submitted Task. - TaskCompletionStatus —
TaskCompletionStatusidentifies the outcome of Task execution.
Exceptions
- TaskNameExistsError — This exception is only thrown when a user submits a task with a name that is already used. Names are unique per VPKG meaning that there can only be one task scheduled with a specific name.

