pub enum ActivityCloseTimeouts {
ScheduleToClose(Duration),
StartToClose(Duration),
Both {
start_to_close: Duration,
schedule_to_close: Duration,
},
}Expand description
The timeouts applied to an activity’s completion.
Variants§
ScheduleToClose(Duration)
Total time that a workflow is willing to wait for Activity to complete.
ActivityCloseTimeouts::ScheduleToClose limits the total time of an Activity’s execution including
retries (use ActivityCloseTimeouts::StartToClose to limit the time of a single attempt).
StartToClose(Duration)
Maximum time of a single Activity execution attempt.
Note that the Temporal Server doesn’t detect Worker process failures directly.
It relies on this timeout to detect that an Activity that didn’t complete on time.
So this timeout should be as short as the longest possible execution of the Activity body.
Potentially long running Activities must specify ActivityOptions::heartbeat_timeout and heartbeat from the
activity periodically for timely failure detection.
Both
Applies both execution-attempt and overall-completion bounds.
Trait Implementations§
Source§impl Clone for ActivityCloseTimeouts
impl Clone for ActivityCloseTimeouts
Source§fn clone(&self) -> ActivityCloseTimeouts
fn clone(&self) -> ActivityCloseTimeouts
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ActivityCloseTimeouts
impl Debug for ActivityCloseTimeouts
Source§impl PartialEq for ActivityCloseTimeouts
impl PartialEq for ActivityCloseTimeouts
impl Copy for ActivityCloseTimeouts
impl Eq for ActivityCloseTimeouts
impl StructuralPartialEq for ActivityCloseTimeouts
Auto Trait Implementations§
impl Freeze for ActivityCloseTimeouts
impl RefUnwindSafe for ActivityCloseTimeouts
impl Send for ActivityCloseTimeouts
impl Sync for ActivityCloseTimeouts
impl Unpin for ActivityCloseTimeouts
impl UnsafeUnpin for ActivityCloseTimeouts
impl UnwindSafe for ActivityCloseTimeouts
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<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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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