Convenience: set status to retry with details. Matches TS retry status with message and next timestamp.
(&self, session_id: &str, attempt: u32, message: String, next: u64)
| 122 | /// Convenience: set status to retry with details. |
| 123 | /// Matches TS retry status with message and next timestamp. |
| 124 | pub async fn set_retry(&self, session_id: &str, attempt: u32, message: String, next: u64) { |
| 125 | self.set( |
| 126 | session_id, |
| 127 | SessionStatusInfo::Retry { |
| 128 | attempt, |
| 129 | message, |
| 130 | next, |
| 131 | }, |
| 132 | ) |
| 133 | .await; |
| 134 | } |
| 135 | |
| 136 | /// Check if a session is busy (busy or retrying). |
| 137 | pub async fn is_busy(&self, session_id: &str) -> bool { |