MCPcopy
hub / github.com/rholder/retrying / stop_after_attempt

Method stop_after_attempt

retrying.py:141–143  ·  view source on GitHub ↗

Stop after the previous attempt >= stop_max_attempt_number.

(self, previous_attempt_number, delay_since_first_attempt_ms)

Source from the content-addressed store, hash-verified

139 self._wrap_exception = wrap_exception
140
141 def stop_after_attempt(self, previous_attempt_number, delay_since_first_attempt_ms):
142 """Stop after the previous attempt >= stop_max_attempt_number."""
143 return previous_attempt_number >= self._stop_max_attempt_number
144
145 def stop_after_delay(self, previous_attempt_number, delay_since_first_attempt_ms):
146 """Stop after the time from the first attempt >= stop_max_delay."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected