pub enum ConnectorRunStatus {
Succeeded,
Failed,
Timeout,
}Expand description
The terminal state of a connector-managed run as observed by the connector.
Connectors use this enum to represent their own job/task states before
mapping them to the Floe-normalized RunStatus. The mapping is
deliberately coarse: fine-grained outcomes (e.g. Rejected, Aborted)
can only be inferred from the in-pod parse_run_status_from_logs helper.
Variants§
Succeeded
The job/task completed without infrastructure error.
The actual logical outcome (success, rejected, …) must be read from
the pod/task logs via parse_run_status_from_logs.
Failed
The job/task failed at the infrastructure level (non-zero exit,
pod OOM, etc.) before or without emitting a run_finished event.
Timeout
The connector’s timeout elapsed before the job/task reached a terminal state.
Implementations§
Source§impl ConnectorRunStatus
impl ConnectorRunStatus
Sourcepub fn to_run_status(self) -> RunStatus
pub fn to_run_status(self) -> RunStatus
Map to a Floe RunStatus suitable for a summary report.
Use parse_run_status_from_logs first to obtain a finer-grained
status from pod logs; only fall back to this mapping when logs are
unavailable or parsing fails.
Trait Implementations§
Source§impl Clone for ConnectorRunStatus
impl Clone for ConnectorRunStatus
Source§fn clone(&self) -> ConnectorRunStatus
fn clone(&self) -> ConnectorRunStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConnectorRunStatus
impl Debug for ConnectorRunStatus
Source§impl PartialEq for ConnectorRunStatus
impl PartialEq for ConnectorRunStatus
impl Copy for ConnectorRunStatus
impl Eq for ConnectorRunStatus
impl StructuralPartialEq for ConnectorRunStatus
Auto Trait Implementations§
impl Freeze for ConnectorRunStatus
impl RefUnwindSafe for ConnectorRunStatus
impl Send for ConnectorRunStatus
impl Sync for ConnectorRunStatus
impl Unpin for ConnectorRunStatus
impl UnsafeUnpin for ConnectorRunStatus
impl UnwindSafe for ConnectorRunStatus
Blanket Implementations§
Source§impl<T> AsAny for T
impl<T> AsAny for T
Source§fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
dyn Any reference to the object: Read moreSource§fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ
fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ
Arc<dyn Any> reference to the object: Read moreSource§fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
Box<dyn Any>: Read moreSource§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
std::any::type_name, since Any does not provide it and
Any::type_id is useless as a debugging aid (its Debug is just a mess of hex digits).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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for T
impl<T> Downcast for T
Source§impl<T> DynPartialEq for T
impl<T> DynPartialEq for T
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more