pub struct ProcessActivityRetry {
pub attempt: i64,
pub max_attempts: i64,
pub next_attempt_at: Option<String>,
}Expand description
ProcessActivityRetry : automatic-retry detail attached to a ProcessActivityStatus. Present only when the element’s most recent dispatch carried a retry policy. next_attempt_at set means the activity failed and is waiting to be retried at that instant – the process is running, not broken, and no incident exists yet. next_attempt_at absent with attempt == max_attempts means the budget is spent; if the element also carries an error, that is the dead-lettered activity.
Fields§
§attempt: i641-based; 1 is the original execution
max_attempts: i64total attempts permitted, original included
next_attempt_at: Option<String>Implementations§
Source§impl ProcessActivityRetry
impl ProcessActivityRetry
Sourcepub fn new(attempt: i64, max_attempts: i64) -> ProcessActivityRetry
pub fn new(attempt: i64, max_attempts: i64) -> ProcessActivityRetry
automatic-retry detail attached to a ProcessActivityStatus. Present only when the element’s most recent dispatch carried a retry policy. next_attempt_at set means the activity failed and is waiting to be retried at that instant – the process is running, not broken, and no incident exists yet. next_attempt_at absent with attempt == max_attempts means the budget is spent; if the element also carries an error, that is the dead-lettered activity.
Trait Implementations§
Source§impl Clone for ProcessActivityRetry
impl Clone for ProcessActivityRetry
Source§fn clone(&self) -> ProcessActivityRetry
fn clone(&self) -> ProcessActivityRetry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more