SkippableTask

A skippable task can be configured via properties to go directly from NOT_STARTED to SKIPPED. By default, the property name is:

tasks.$taskId.enabled

where `taskId` corresponds to the simple class name (without the package) with a lower case first character. For example, a skippable class `com.foo.DummySkippableTask` could be disabled via property

tasks.dummySkippableTask.enabled

public interface SkippableTask implements Task

See also

StartTaskHandler

Functions

aliases
Link copied to clipboard

A collection of known aliases.

Collection<Stringaliases()
execute
Link copied to clipboard

Execute the business logic of the task, using the provided stage execution state.

@Nonnull()
abstract TaskResult execute(StageExecution stage)
getExtensionClass
Link copied to clipboard
Class<? extends SpinnakerExtensionPointgetExtensionClass()
getPluginId
Link copied to clipboard
String getPluginId()
isEnabledPropertyName
Link copied to clipboard
String isEnabledPropertyName()
static String isEnabledPropertyName(String name)
onCancel
Link copied to clipboard

Behavior to be called on Task cancellation.

This method should be used if you need to perform cleanup in response to the task being cancelled before it was able to complete.

void onCancel(StageExecution stage)
onTimeout
Link copied to clipboard

Behavior to be called on Task timeout.

This method should be used if you need to perform any cleanup operations in response to the task being aborted after taking too long to complete.

@Nullable()
TaskResult onTimeout(StageExecution stage)