pub struct ScheduledActivity {
pub namespace: String,
pub task_queue: String,
pub activity_type: String,
pub node: Option<String>,
pub workflow_id: WorkflowId,
pub activity_id: ActivityId,
pub run_id: Option<RunId>,
pub input: Payload,
pub attempt: u32,
pub labels: BTreeMap<String, String>,
}Expand description
Scheduled remote activity that must be placed with a connected worker.
Fields§
§namespace: StringNamespace selected by the adapter boundary before dispatch — the correctness/isolation boundary the activity may dispatch within.
task_queue: StringTask queue (pool/flavour) selected within the namespace. The worker-pool
address is (namespace, task_queue); an empty value is normalized to the
named default pool by the registry lookup.
activity_type: StringActivity type to match against worker registrations, within the selected pool.
node: Option<String>Optional node locality affinity. Some(node) pins this dispatch to
workers advertising that node (require semantics: it waits if none are
present, exactly like the no-worker path); None is unpinned and reaches
any worker in the (namespace, task_queue) pool — byte-identical to the
pre-NODE behaviour. Producers stamp None until SDK selection (NODE-4)
and the durable column (NODE-2) land.
workflow_id: WorkflowIdOwning workflow id.
activity_id: ActivityIdCorrelating activity id.
run_id: Option<RunId>Concrete workflow run that staged this task, when known.
input: PayloadOpaque activity input payload.
attempt: u32One-based delivery attempt stamped by the dispatching engine seam. Zero is malformed on the wire; producers must always stamp it.
labels: BTreeMap<String, String>Display labels the workflow attached to the activity. Display metadata only — carried to the worker for its logs and the dashboard.
Implementations§
Source§impl ScheduledActivity
impl ScheduledActivity
Sourcepub fn to_task(&self) -> ProtoActivityTask
pub fn to_task(&self) -> ProtoActivityTask
Build the wire task pushed to the worker stream.
Trait Implementations§
Source§impl Clone for ScheduledActivity
impl Clone for ScheduledActivity
Source§fn clone(&self) -> ScheduledActivity
fn clone(&self) -> ScheduledActivity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ScheduledActivity
impl Debug for ScheduledActivity
impl Eq for ScheduledActivity
Source§impl PartialEq for ScheduledActivity
impl PartialEq for ScheduledActivity
Source§fn eq(&self, other: &ScheduledActivity) -> bool
fn eq(&self, other: &ScheduledActivity) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ScheduledActivity
Auto Trait Implementations§
impl Freeze for ScheduledActivity
impl RefUnwindSafe for ScheduledActivity
impl Send for ScheduledActivity
impl Sync for ScheduledActivity
impl Unpin for ScheduledActivity
impl UnsafeUnpin for ScheduledActivity
impl UnwindSafe for ScheduledActivity
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
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§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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request