pub struct ScheduleActivityTaskCommandAttributes {Show 13 fields
pub activity_id: String,
pub activity_type: Option<ActivityType>,
pub task_queue: Option<TaskQueue>,
pub header: Option<Header>,
pub input: Option<Payloads>,
pub schedule_to_close_timeout: Option<Duration>,
pub schedule_to_start_timeout: Option<Duration>,
pub start_to_close_timeout: Option<Duration>,
pub heartbeat_timeout: Option<Duration>,
pub retry_policy: Option<RetryPolicy>,
pub request_eager_execution: bool,
pub use_workflow_build_id: bool,
pub priority: Option<Priority>,
}Fields§
§activity_id: String§activity_type: Option<ActivityType>§task_queue: Option<TaskQueue>§header: Option<Header>§input: Option<Payloads>§schedule_to_close_timeout: Option<Duration>Indicates how long the caller is willing to wait for activity completion. The “schedule” time
is when the activity is initially scheduled, not when the most recent retry is scheduled.
Limits how long retries will be attempted. Either this or start_to_close_timeout must be
specified. When not specified, defaults to the workflow execution timeout.
(– api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: “to” is used to indicate interval. –)
schedule_to_start_timeout: Option<Duration>Limits the time an activity task can stay in a task queue before a worker picks it up. The
“schedule” time is when the most recent retry is scheduled. This timeout should usually not
be set: it’s useful in specific scenarios like worker-specific task queues. This timeout is
always non retryable, as all a retry would achieve is to put it back into the same queue.
Defaults to schedule_to_close_timeout or workflow execution timeout if that is not
specified. More info:
https://docs.temporal.io/docs/content/what-is-a-schedule-to-start-timeout/
(– api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: “to” is used to indicate interval. –)
start_to_close_timeout: Option<Duration>Maximum time an activity is allowed to execute after being picked up by a worker. This
timeout is always retryable. Either this or schedule_to_close_timeout must be specified.
(– api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: “to” is used to indicate interval. –)
heartbeat_timeout: Option<Duration>Maximum permitted time between successful worker heartbeats.
retry_policy: Option<RetryPolicy>Activities are provided by a default retry policy which is controlled through the service’s
dynamic configuration. Retries will be attempted until schedule_to_close_timeout has
elapsed. To disable retries set retry_policy.maximum_attempts to 1.
request_eager_execution: boolRequest to start the activity directly bypassing matching service and worker polling The slot for executing the activity should be reserved when setting this field to true.
use_workflow_build_id: boolIf this is set, the activity would be assigned to the Build ID of the workflow. Otherwise, Assignment rules of the activity’s Task Queue will be used to determine the Build ID.
priority: Option<Priority>Priority metadata. If this message is not present, or any fields are not present, they inherit the values from the workflow.
Trait Implementations§
Source§impl Clone for ScheduleActivityTaskCommandAttributes
impl Clone for ScheduleActivityTaskCommandAttributes
Source§fn clone(&self) -> ScheduleActivityTaskCommandAttributes
fn clone(&self) -> ScheduleActivityTaskCommandAttributes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl From<ScheduleActivityTaskCommandAttributes> for Attributes
impl From<ScheduleActivityTaskCommandAttributes> for Attributes
Source§fn from(value: ScheduleActivityTaskCommandAttributes) -> Self
fn from(value: ScheduleActivityTaskCommandAttributes) -> Self
Source§impl Message for ScheduleActivityTaskCommandAttributes
impl Message for ScheduleActivityTaskCommandAttributes
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 ScheduleActivityTaskCommandAttributes
impl Name for ScheduleActivityTaskCommandAttributes
Source§const NAME: &'static str = "ScheduleActivityTaskCommandAttributes"
const NAME: &'static str = "ScheduleActivityTaskCommandAttributes"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "temporal.api.command.v1"
const PACKAGE: &'static str = "temporal.api.command.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 ScheduleActivityTaskCommandAttributes
impl PartialEq for ScheduleActivityTaskCommandAttributes
Source§fn eq(&self, other: &ScheduleActivityTaskCommandAttributes) -> bool
fn eq(&self, other: &ScheduleActivityTaskCommandAttributes) -> bool
self and other values to be equal, and is used by ==.§impl PayloadVisitable for ScheduleActivityTaskCommandAttributes
impl PayloadVisitable for ScheduleActivityTaskCommandAttributes
§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 ScheduleActivityTaskCommandAttributes
Auto Trait Implementations§
impl Freeze for ScheduleActivityTaskCommandAttributes
impl RefUnwindSafe for ScheduleActivityTaskCommandAttributes
impl Send for ScheduleActivityTaskCommandAttributes
impl Sync for ScheduleActivityTaskCommandAttributes
impl Unpin for ScheduleActivityTaskCommandAttributes
impl UnsafeUnpin for ScheduleActivityTaskCommandAttributes
impl UnwindSafe for ScheduleActivityTaskCommandAttributes
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