Enum google_api_proto::google::cloud::aiplatform::v1::PipelineFailurePolicy
source · #[repr(i32)]pub enum PipelineFailurePolicy {
Unspecified = 0,
FailSlow = 1,
FailFast = 2,
}
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.
Variants§
Unspecified = 0
Default value, and follows fail slow behavior.
FailSlow = 1
Indicates that the pipeline should continue to run until all possible tasks have been scheduled and completed.
FailFast = 2
Indicates that the pipeline should stop scheduling new tasks after a task has failed.
Implementations§
source§impl PipelineFailurePolicy
impl PipelineFailurePolicy
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of PipelineFailurePolicy
.
sourcepub fn from_i32(value: i32) -> Option<PipelineFailurePolicy>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<PipelineFailurePolicy>
Converts an i32
to a PipelineFailurePolicy
, or None
if value
is not a valid variant.
source§impl PipelineFailurePolicy
impl PipelineFailurePolicy
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
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 moresource§impl Debug for PipelineFailurePolicy
impl Debug for PipelineFailurePolicy
source§impl Default for PipelineFailurePolicy
impl Default for PipelineFailurePolicy
source§fn default() -> PipelineFailurePolicy
fn default() -> PipelineFailurePolicy
source§impl From<PipelineFailurePolicy> for i32
impl From<PipelineFailurePolicy> for i32
source§fn from(value: PipelineFailurePolicy) -> i32
fn from(value: PipelineFailurePolicy) -> i32
source§impl Hash for PipelineFailurePolicy
impl Hash for PipelineFailurePolicy
source§impl Ord for PipelineFailurePolicy
impl Ord for PipelineFailurePolicy
source§fn cmp(&self, other: &PipelineFailurePolicy) -> Ordering
fn cmp(&self, other: &PipelineFailurePolicy) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PipelineFailurePolicy
impl PartialEq for PipelineFailurePolicy
source§fn eq(&self, other: &PipelineFailurePolicy) -> bool
fn eq(&self, other: &PipelineFailurePolicy) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PipelineFailurePolicy
impl PartialOrd for PipelineFailurePolicy
source§fn partial_cmp(&self, other: &PipelineFailurePolicy) -> Option<Ordering>
fn partial_cmp(&self, other: &PipelineFailurePolicy) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for PipelineFailurePolicy
impl TryFrom<i32> for PipelineFailurePolicy
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<PipelineFailurePolicy, UnknownEnumValue>
fn try_from(value: i32) -> Result<PipelineFailurePolicy, UnknownEnumValue>
impl Copy for PipelineFailurePolicy
impl Eq for PipelineFailurePolicy
impl StructuralPartialEq for PipelineFailurePolicy
Auto Trait Implementations§
impl Freeze for PipelineFailurePolicy
impl RefUnwindSafe for PipelineFailurePolicy
impl Send for PipelineFailurePolicy
impl Sync for PipelineFailurePolicy
impl Unpin for PipelineFailurePolicy
impl UnwindSafe for PipelineFailurePolicy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request