Class LifecyclePolicy (0.15.0)

LifecyclePolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

Attributes

NameDescription
action google.cloud.batch_v1alpha.types.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 google.cloud.batch_v1alpha.types.LifecyclePolicy.ActionCondition
Conditions that decide why a task failure is dealt with a specific action.

Classes

Action

Action(value)

Action on task failures based on different conditions.

Values: ACTION_UNSPECIFIED (0): Action unspecified. RETRY_TASK (1): Action that tasks in the group will be scheduled to re-execute. FAIL_TASK (2): Action that tasks in the group will be stopped immediately.

ActionCondition

ActionCondition(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Conditions for actions to deal with task failures.