LifecyclePolicyResponse

data class LifecyclePolicyResponse(val action: String, val actionCondition: ActionConditionResponse)

LifecyclePolicy describes how to deal with task failures based on different conditions.

Constructors

Link copied to clipboard
constructor(action: String, actionCondition: ActionConditionResponse)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Action to execute when ActionCondition is true. When RETRY_TASK is specified, we will retry failed tasks if we notice any exit code match and fail tasks if no match is found. Likewise, when FAIL_TASK is specified, we will fail tasks if we notice any exit code match and retry tasks if no match is found.

Link copied to clipboard

Conditions that decide why a task failure is dealt with a specific action.