pub struct StepMethodEventContext {Show 13 fields
pub step_execution_id: String,
pub from_step_execution_id: String,
pub step_type: String,
pub durability: i32,
pub final_attempt: i32,
pub started_time: Option<Timestamp>,
pub duration: Option<Duration>,
pub method_options: Option<StepMethodOptions>,
pub last_failure_info: Option<StepMethodFailure>,
pub pull_routing: Option<PullRouting>,
pub from_event_id: i64,
pub wait_for_completed_event_id: i64,
pub wait_for_completed_time: Option<Timestamp>,
}Fields§
§step_execution_id: String§from_step_execution_id: String§step_type: String§durability: i32§final_attempt: i32§started_time: Option<Timestamp>§duration: Option<Duration>§method_options: Option<StepMethodOptions>§last_failure_info: Option<StepMethodFailure>§pull_routing: Option<PullRouting>§from_event_id: i64The event ID of the history event that started this Step execution.
The event depends on what started the Step execution:
- The start Step: the FlowStartedOrContinued event.
- A Step decision: the StepExecuteCompleted event of from_step_execution_id.
- A failure recovery Step: the StepExecuteFailed event of from_step_execution_id.
- An RPC Step decision: the RpcExecutionCompleted event. Every event of the Step execution carries the same value.
Use it to link a Step execution to its source without scanning history. The event can be on another history page. It can also belong to an earlier run attempt of the lineage after time travel. When the ID is inside GetHistoryEventsResponse.pruned_event_id_range, the history window removed the event.
Zero when no history event started the Step execution, such as for the Flow timeout handler. Zero also for events that a Server recorded before it reported this field. Then find the source through from_step_execution_id.
wait_for_completed_event_id: i64The event ID of the StepWaitForCompleted event of this Step execution.
It is set only on Execute events: StepExecuteCompleted, StepExecuteFailed, and StepExecutePending. The Step’s WaitFor must have completed. Use it to link Execute to the WaitFor that registered its waiting conditions. The event can be on another history page, or in an earlier run attempt of the lineage after time travel. When the ID is inside GetHistoryEventsResponse.pruned_event_id_range, the history window removed the event.
Zero on WaitFor events. Zero also when the Step skipped WaitFor, or when WaitFor failed and the Step proceeded to Execute. Zero also for events that a Server recorded before it reported this field. Then find the WaitFor event through step_execution_id.
wait_for_completed_time: Option<Timestamp>The event time of the StepWaitForCompleted event that wait_for_completed_event_id names.
It stays available after the history window removes that event. The time from it to started_time is not only the condition wait. started_time is the start of the attempt that this event reports, so the difference also includes Execute dispatch and lock waits, and every earlier failed Execute attempt with its retry backoff. On a StepExecutePending event in the SCHEDULED phase whose Execute never started an attempt, started_time is when Execute was first scheduled, not an attempt start.
Unset whenever wait_for_completed_event_id is zero.
Implementations§
Source§impl StepMethodEventContext
impl StepMethodEventContext
Sourcepub fn durability(&self) -> StepDurability
pub fn durability(&self) -> StepDurability
Returns the enum value of durability, or the default if the field is set to an invalid enum value.
Sourcepub fn set_durability(&mut self, value: StepDurability)
pub fn set_durability(&mut self, value: StepDurability)
Sets durability to the provided enum value.
Trait Implementations§
Source§impl Clone for StepMethodEventContext
impl Clone for StepMethodEventContext
Source§impl Debug for StepMethodEventContext
impl Debug for StepMethodEventContext
Source§impl Default for StepMethodEventContext
impl Default for StepMethodEventContext
Source§impl Message for StepMethodEventContext
impl Message for StepMethodEventContext
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for StepMethodEventContext
impl PartialEq for StepMethodEventContext
impl StructuralPartialEq for StepMethodEventContext
Auto Trait Implementations§
impl Freeze for StepMethodEventContext
impl RefUnwindSafe for StepMethodEventContext
impl Send for StepMethodEventContext
impl Sync for StepMethodEventContext
impl Unpin for StepMethodEventContext
impl UnsafeUnpin for StepMethodEventContext
impl UnwindSafe for StepMethodEventContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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