pub struct TaskSnapshot {Show 17 fields
pub parent_workflow_id: Option<String>,
pub root_workflow_id: Option<String>,
pub workflow_id: Option<String>,
pub workflow_activation_id: Option<String>,
pub task_id: String,
pub run_id: String,
pub idempotency_key: String,
pub input: SubmitTask,
pub descriptor: ProgramDescriptor,
pub origin_trace: Option<TraceContext>,
pub state: TaskState,
pub submitted_at: Timestamp,
pub available_at: Timestamp,
pub terminal_at: Option<Timestamp>,
pub current_attempt_id: Option<String>,
pub attempt_count: u32,
pub cancel_requested_at: Option<Timestamp>,
}Expand description
Transaction-loaded scheduling record. Inputs and the descriptor are immutable.
Fields§
§parent_workflow_id: Option<String>Present together only for a nested owned workflow; roots omit both.
root_workflow_id: Option<String>§workflow_id: Option<String>Workflow execution identity, distinct from the existing per-task run ID.
workflow_activation_id: Option<String>Present only for a registered workflow controller task.
task_id: String§run_id: String§idempotency_key: String§input: SubmitTask§descriptor: ProgramDescriptor§origin_trace: Option<TraceContext>§state: TaskState§submitted_at: Timestamp§available_at: Timestamp§terminal_at: Option<Timestamp>§current_attempt_id: Option<String>§attempt_count: u32§cancel_requested_at: Option<Timestamp>Implementations§
Trait Implementations§
Source§impl Clone for TaskSnapshot
impl Clone for TaskSnapshot
Source§impl Debug for TaskSnapshot
impl Debug for TaskSnapshot
Source§impl<'de> Deserialize<'de> for TaskSnapshot
impl<'de> Deserialize<'de> for TaskSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TaskSnapshot
impl RefUnwindSafe for TaskSnapshot
impl Send for TaskSnapshot
impl Sync for TaskSnapshot
impl Unpin for TaskSnapshot
impl UnsafeUnpin for TaskSnapshot
impl UnwindSafe for TaskSnapshot
Blanket Implementations§
impl<T> ArtifactLease for T
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