pub struct WorkflowTaskSnapshot {Show 14 fields
pub checkpoint_id: CheckpointId,
pub tenant_id: WorkflowTenantId,
pub workflow: String,
pub workflow_version: u32,
pub status: WorkflowTaskStatus,
pub created_at_ms: u64,
pub updated_at_ms: u64,
pub attempts: u64,
pub fencing_token: u64,
pub owner: Option<WorkerId>,
pub lease_expires_at_ms: Option<u64>,
pub interrupt: Option<WorkflowInterruptRequest>,
pub failure_message: Option<String>,
pub lineage: Option<WorkflowLineage>,
}Expand description
Safe operator snapshot of one workflow task.
Fields§
§checkpoint_id: CheckpointIdStable task identity.
tenant_id: WorkflowTenantIdTenant that owns the task.
workflow: StringStable workflow definition name.
workflow_version: u32Exact workflow definition version.
status: WorkflowTaskStatusCurrent durable state.
created_at_ms: u64Store-authoritative creation time in Unix milliseconds.
updated_at_ms: u64Store-authoritative last state-transition time in Unix milliseconds.
attempts: u64Number of successful claims.
fencing_token: u64Current fencing token.
owner: Option<WorkerId>Current lease owner, when leased.
lease_expires_at_ms: Option<u64>Lease expiration, when leased.
interrupt: Option<WorkflowInterruptRequest>Pending human-review request, when the task is interrupted.
failure_message: Option<String>Safe terminal failure explanation, when failed.
lineage: Option<WorkflowLineage>Immutable parent relation when this task was forked from history.
Trait Implementations§
Source§impl Clone for WorkflowTaskSnapshot
impl Clone for WorkflowTaskSnapshot
Source§fn clone(&self) -> WorkflowTaskSnapshot
fn clone(&self) -> WorkflowTaskSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkflowTaskSnapshot
impl Debug for WorkflowTaskSnapshot
impl Eq for WorkflowTaskSnapshot
Source§impl PartialEq for WorkflowTaskSnapshot
impl PartialEq for WorkflowTaskSnapshot
impl StructuralPartialEq for WorkflowTaskSnapshot
Auto Trait Implementations§
impl Freeze for WorkflowTaskSnapshot
impl RefUnwindSafe for WorkflowTaskSnapshot
impl Send for WorkflowTaskSnapshot
impl Sync for WorkflowTaskSnapshot
impl Unpin for WorkflowTaskSnapshot
impl UnsafeUnpin for WorkflowTaskSnapshot
impl UnwindSafe for WorkflowTaskSnapshot
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.