Batch V1 API - Class Google::Cloud::Batch::V1::LifecyclePolicy (v0.19.1)

Reference documentation and code samples for the Batch V1 API class Google::Cloud::Batch::V1::LifecyclePolicy.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#action

def action() -> ::Google::Cloud::Batch::V1::LifecyclePolicy::Action
Returns
  • (::Google::Cloud::Batch::V1::LifecyclePolicy::Action) — 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.

#action=

def action=(value) -> ::Google::Cloud::Batch::V1::LifecyclePolicy::Action
Parameter
  • value (::Google::Cloud::Batch::V1::LifecyclePolicy::Action) — 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.
Returns
  • (::Google::Cloud::Batch::V1::LifecyclePolicy::Action) — 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.

#action_condition

def action_condition() -> ::Google::Cloud::Batch::V1::LifecyclePolicy::ActionCondition
Returns

#action_condition=

def action_condition=(value) -> ::Google::Cloud::Batch::V1::LifecyclePolicy::ActionCondition
Parameter
Returns