pub struct TaskLiveness {
pub worker_id: WorkerId,
pub workflow_id: WorkflowId,
pub activity_id: ActivityId,
pub attempt: u32,
pub completion_token: CompletionToken,
pub heartbeat_window: Duration,
pub last_heartbeat_at: Instant,
pub last_progress: Option<Payload>,
pub last_progress_at: Option<DateTime<Utc>>,
}Expand description
Observable liveness state for a single in-flight activity.
Fields§
§worker_id: WorkerIdWorker currently responsible for the task.
workflow_id: WorkflowIdOwning workflow id.
activity_id: ActivityIdCorrelating activity id.
attempt: u32One-based delivery attempt this tracked dispatch carries (see
InFlightActivity::attempt).
completion_token: CompletionTokenGeneration authorized to receive a result or synthesized loss.
heartbeat_window: DurationOperator-configured heartbeat window used for expiry checks.
last_heartbeat_at: InstantMonotonic timestamp of assignment or the most recent heartbeat.
last_progress: Option<Payload>Optional worker progress from the most recent heartbeat.
last_progress_at: Option<DateTime<Utc>>Wall-clock instant this process received the heartbeat that carried
Self::last_progress. None while no progress has been reported.
A wall clock rather than the tracked Instant because this one is
REPORTED to operators, and a monotonic instant means nothing outside the
process that minted it. Server-side observability stamping only — the
determinism boundary governs workflow-visible time, and nothing here is
workflow-visible.
Trait Implementations§
Source§impl Clone for TaskLiveness
impl Clone for TaskLiveness
Source§fn clone(&self) -> TaskLiveness
fn clone(&self) -> TaskLiveness
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TaskLiveness
impl Debug for TaskLiveness
impl Eq for TaskLiveness
Source§impl PartialEq for TaskLiveness
impl PartialEq for TaskLiveness
impl StructuralPartialEq for TaskLiveness
Auto Trait Implementations§
impl Freeze for TaskLiveness
impl RefUnwindSafe for TaskLiveness
impl Send for TaskLiveness
impl Sync for TaskLiveness
impl Unpin for TaskLiveness
impl UnsafeUnpin for TaskLiveness
impl UnwindSafe for TaskLiveness
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
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