Name the retry module by what it holds

This commit was merged in pull request #114.
This commit is contained in:
2026-09-28 21:15:26 +02:00
parent 4cd79e5b1a
commit 089d8fa1dc
3 changed files with 2 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
import sys
import time
from loop_claude.outcome import Stop
def stop_or_sleep_a_minute(who, failures, failure):
if failures == 3:
return Stop(1, f"the {who} failed three times running: {failure}")
print(f"retrying the {who} in a minute: {failure}", file=sys.stderr)
time.sleep(60)