pub struct ScheduleActivityRequest {
pub name: String,
pub seq: i32,
pub task_queue: String,
pub input: Option<Value>,
pub max_attempts: Option<i32>,
pub initial_interval_secs: Option<f64>,
pub backoff_coefficient: Option<f64>,
pub start_to_close_secs: Option<f64>,
pub heartbeat_timeout_secs: Option<f64>,
}Fields§
§name: StringActivity name (the worker matches this to a registered handler)
seq: i32Sequence number relative to the workflow. Used for idempotency:
scheduling the same (workflow_id, seq) twice is a no-op on the
second call. Workflows assign sequence numbers in execution order.
task_queue: StringTask queue to route the activity to (workers poll a specific queue)
input: Option<Value>JSON-serialisable input passed to the activity handler
max_attempts: Option<i32>Maximum attempts before the activity is marked FAILED (default 3)
initial_interval_secs: Option<f64>Initial retry backoff in seconds (default 1.0)
backoff_coefficient: Option<f64>Exponential backoff coefficient (default 2.0)
start_to_close_secs: Option<f64>Total time the activity has to complete before being failed (default 300)
heartbeat_timeout_secs: Option<f64>If set, an activity that hasn’t heartbeated within this window is auto-failed
Trait Implementations§
Source§impl ComposeSchema for ScheduleActivityRequest
impl ComposeSchema for ScheduleActivityRequest
Source§impl<'de> Deserialize<'de> for ScheduleActivityRequest
impl<'de> Deserialize<'de> for ScheduleActivityRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScheduleActivityRequest
impl RefUnwindSafe for ScheduleActivityRequest
impl Send for ScheduleActivityRequest
impl Sync for ScheduleActivityRequest
impl Unpin for ScheduleActivityRequest
impl UnsafeUnpin for ScheduleActivityRequest
impl UnwindSafe for ScheduleActivityRequest
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 more