pub struct InvocationContext {
pub flow_run_id: FlowRunId,
pub node_id: NodeId,
pub step_run_id: StepRunId,
pub run_id: Uuid,
pub attempt_id: Uuid,
pub attempt_number: u32,
pub cancellation: CancellationToken,
}Expand description
Context provided to every connector invocation.
Contains identity fields for idempotency (Invariant 3), tracing, and cooperative cancellation.
Fields§
§flow_run_id: FlowRunIdWhich flow run this invocation belongs to.
node_id: NodeIdWhich node in the FlowSpec graph is being executed.
step_run_id: StepRunIdThe step execution identity (deterministic from FlowRunId + NodeId).
run_id: UuidThe AQ RunId — the idempotency key for this invocation. Stored as raw UUID to avoid coupling worldinterface-connector to actionqueue-core.
attempt_id: UuidThe AQ AttemptId — unique per retry attempt. Used for logging, NOT for idempotency.
attempt_number: u32Which attempt this is (1-indexed). Useful for connectors that want to log retry information.
cancellation: CancellationTokenCooperative cancellation signal. Connectors performing long operations should poll this at bounded intervals.
Trait Implementations§
Source§impl Clone for InvocationContext
impl Clone for InvocationContext
Source§fn clone(&self) -> InvocationContext
fn clone(&self) -> InvocationContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InvocationContext
impl RefUnwindSafe for InvocationContext
impl Send for InvocationContext
impl Sync for InvocationContext
impl Unpin for InvocationContext
impl UnsafeUnpin for InvocationContext
impl UnwindSafe for InvocationContext
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