pub struct ActivityTaskStartedEventAttributes {
pub scheduled_event_id: i64,
pub identity: String,
pub request_id: String,
pub attempt: i32,
pub last_failure: Option<Failure>,
pub worker_version: Option<WorkerVersionStamp>,
pub build_id_redirect_counter: i64,
}Fields§
§scheduled_event_id: i64The id of the ACTIVITY_TASK_SCHEDULED event this task corresponds to
identity: Stringid of the worker that picked up this task
request_id: StringThis field is populated from the RecordActivityTaskStartedRequest. Matching service would set the request_id on the RecordActivityTaskStartedRequest to a new UUID. This is useful in case a RecordActivityTaskStarted call succeed but matching doesn’t get that response, so matching could retry and history service would return success if the request_id matches. In that case, matching will continue to deliver the task to worker. Without this field, history service would return AlreadyStarted error, and matching would drop the task.
attempt: i32Starting at 1, the number of times this task has been attempted
last_failure: Option<Failure>Will be set to the most recent failure details, if this task has previously failed and then been retried.
worker_version: Option<WorkerVersionStamp>Version info of the worker to whom this task was dispatched. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
build_id_redirect_counter: i64Used by server internally to properly reapply build ID redirects to an execution when rebuilding it from events. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
Trait Implementations§
Source§impl Clone for ActivityTaskStartedEventAttributes
impl Clone for ActivityTaskStartedEventAttributes
Source§fn clone(&self) -> ActivityTaskStartedEventAttributes
fn clone(&self) -> ActivityTaskStartedEventAttributes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl From<ActivityTaskStartedEventAttributes> for Attributes
impl From<ActivityTaskStartedEventAttributes> for Attributes
Source§fn from(value: ActivityTaskStartedEventAttributes) -> Self
fn from(value: ActivityTaskStartedEventAttributes) -> Self
Source§impl Message for ActivityTaskStartedEventAttributes
impl Message for ActivityTaskStartedEventAttributes
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl Name for ActivityTaskStartedEventAttributes
impl Name for ActivityTaskStartedEventAttributes
Source§const NAME: &'static str = "ActivityTaskStartedEventAttributes"
const NAME: &'static str = "ActivityTaskStartedEventAttributes"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "temporal.api.history.v1"
const PACKAGE: &'static str = "temporal.api.history.v1"
., e.g. google.protobuf.Source§fn full_name() -> String
fn full_name() -> String
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for ActivityTaskStartedEventAttributes
impl PartialEq for ActivityTaskStartedEventAttributes
Source§fn eq(&self, other: &ActivityTaskStartedEventAttributes) -> bool
fn eq(&self, other: &ActivityTaskStartedEventAttributes) -> bool
self and other values to be equal, and is used by ==.§impl PayloadVisitable for ActivityTaskStartedEventAttributes
impl PayloadVisitable for ActivityTaskStartedEventAttributes
§fn visit_payloads_mut<'a>(
&'a mut self,
visitor: &'a mut (dyn AsyncPayloadVisitor + Send),
) -> BoxFuture<'a, ()>
fn visit_payloads_mut<'a>( &'a mut self, visitor: &'a mut (dyn AsyncPayloadVisitor + Send), ) -> BoxFuture<'a, ()>
impl StructuralPartialEq for ActivityTaskStartedEventAttributes
Auto Trait Implementations§
impl Freeze for ActivityTaskStartedEventAttributes
impl RefUnwindSafe for ActivityTaskStartedEventAttributes
impl Send for ActivityTaskStartedEventAttributes
impl Sync for ActivityTaskStartedEventAttributes
impl Unpin for ActivityTaskStartedEventAttributes
impl UnsafeUnpin for ActivityTaskStartedEventAttributes
impl UnwindSafe for ActivityTaskStartedEventAttributes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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::Request