Files
claude-config/bin/loop_claude/strike.py
T

12 lines
273 B
Python

import sys
import time
from loop_claude.outcome import Stop
def strike(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)