pub struct FlowKeyContext { /* private fields */ }Expand description
Key context for flow-structural partition keys.
Implementations§
Source§impl FlowKeyContext
impl FlowKeyContext
pub fn new(partition: &Partition, fid: &FlowId) -> Self
ff:flow:{fp:N}:<flow_id>:tags — User-supplied key-value labels.
Symmetric with ExecKeyContext::tags. Populated by
ff_set_flow_tags, which also lazy-migrates any pre-58.4
reserved-namespace fields stashed inline on flow_core.
Sourcepub fn member(&self, eid: &ExecutionId) -> String
pub fn member(&self, eid: &ExecutionId) -> String
ff:flow:{fp:N}:<flow_id>:member:<eid>
Sourcepub fn outgoing(&self, upstream_eid: &ExecutionId) -> String
pub fn outgoing(&self, upstream_eid: &ExecutionId) -> String
ff:flow:{fp:N}:<flow_id>:out:<upstream_eid>
Sourcepub fn incoming(&self, downstream_eid: &ExecutionId) -> String
pub fn incoming(&self, downstream_eid: &ExecutionId) -> String
ff:flow:{fp:N}:<flow_id>:in:<downstream_eid>
Sourcepub fn pending_cancels(&self) -> String
pub fn pending_cancels(&self) -> String
ff:flow:{fp:N}:<flow_id>:pending_cancels — SET of execution IDs
whose cancel is still owed after a cancel_all cancel_flow. The
live async dispatch SREMs entries as it succeeds; the cancel
reconciler scanner drains the remainder on its interval so a
process crash mid-dispatch or a member whose cancel hit a
permanent error can’t leave a flow member un-cancelled.