Name the minute's sleep and the exec at their call sites
This commit is contained in:
@@ -4,7 +4,7 @@ import time
|
||||
from loop_claude.outcome import Stop
|
||||
|
||||
|
||||
def strike(who, failures, failure):
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user