pub struct ExecutionCheckpoint {
pub workflow_id: WorkflowId,
pub completed_task_ids: Vec<TaskId>,
pub variables: HashMap<String, Value>,
pub timestamp_secs: u64,
}Expand description
Serializable checkpoint for pause/resume of workflow execution.
This struct captures the minimal state needed to resume a paused workflow:
the set of already-completed task IDs and the current execution context
variables. It can be persisted to disk, a database, or transferred over
the network, then passed back to
WorkflowExecutor::resume_from_checkpoint.
Fields§
§workflow_id: WorkflowIdWorkflow identifier.
completed_task_ids: Vec<TaskId>Task IDs that had completed at the time the checkpoint was taken.
variables: HashMap<String, Value>Execution context variables at checkpoint time.
timestamp_secs: u64Unix timestamp (seconds) when the checkpoint was captured.
Implementations§
Trait Implementations§
Source§impl Clone for ExecutionCheckpoint
impl Clone for ExecutionCheckpoint
Source§fn clone(&self) -> ExecutionCheckpoint
fn clone(&self) -> ExecutionCheckpoint
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 ExecutionCheckpoint
impl Debug for ExecutionCheckpoint
Source§impl<'de> Deserialize<'de> for ExecutionCheckpoint
impl<'de> Deserialize<'de> for ExecutionCheckpoint
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 ExecutionCheckpoint
impl RefUnwindSafe for ExecutionCheckpoint
impl Send for ExecutionCheckpoint
impl Sync for ExecutionCheckpoint
impl Unpin for ExecutionCheckpoint
impl UnsafeUnpin for ExecutionCheckpoint
impl UnwindSafe for ExecutionCheckpoint
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