(self, failure_mode: FailureMode, attempt: int)
| 633 | ) |
| 634 | |
| 635 | def should_retry(self, failure_mode: FailureMode, attempt: int) -> bool: |
| 636 | if attempt >= self.config.max_attempts: |
| 637 | return False |
| 638 | if failure_mode in NO_RETRY_MODES: |
| 639 | return False |
| 640 | return True |
| 641 | |
| 642 | def jittered_delay_s(self, attempt: int) -> float: |
| 643 | """ |
no outgoing calls