#[non_exhaustive]pub enum PipelineFailurePolicy {
Unspecified,
FailSlow,
FailFast,
UnknownValue(UnknownValue),
}Expand description
Represents the failure policy of a pipeline. Currently, the default of a pipeline is that the pipeline will continue to run until no more tasks can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling any new tasks when a task has failed. Any scheduled tasks will continue to completion.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
Default value, and follows fail slow behavior.
FailSlow
Indicates that the pipeline should continue to run until all possible tasks have been scheduled and completed.
FailFast
Indicates that the pipeline should stop scheduling new tasks after a task has failed.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using PipelineFailurePolicy::value or PipelineFailurePolicy::name.
Implementations§
Trait Implementations§
Source§impl Clone for PipelineFailurePolicy
impl Clone for PipelineFailurePolicy
Source§fn clone(&self) -> PipelineFailurePolicy
fn clone(&self) -> PipelineFailurePolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more