Name the retry helper's and the judge's message reason
This commit was merged in pull request #116.
This commit is contained in:
@@ -4,8 +4,8 @@ import time
|
||||
from loop_claude.outcome import Stop
|
||||
|
||||
|
||||
def stop_or_sleep_a_minute(who, failures, failure):
|
||||
def stop_or_sleep_a_minute(who, failures, reason):
|
||||
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)
|
||||
return Stop(1, f"the {who} failed three times running: {reason}")
|
||||
print(f"retrying the {who} in a minute: {reason}", file=sys.stderr)
|
||||
time.sleep(60)
|
||||
|
||||
Reference in New Issue
Block a user