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.