From fe4a21a744484cc65db57ed9fbb59ebe466257c2 Mon Sep 17 00:00:00 2001 From: Eren Date: Sun, 19 Jul 2026 09:53:32 +0300 Subject: [PATCH] fix: disable set -e during main loop to allow retry on transient API errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The main loop retry logic handles non-zero exit codes by sleeping 30s and continuing, but set -e at line 6 kills the script before retry can work. Adding set +e before the while loop lets transient network errors trigger the retry path instead of a fatal unexpected_exit. The circuit breaker (record_loop_result) still protects against real stagnation — it only tracks progress during successful executions. Co-Authored-By: Claude --- ralph/ralph_loop.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ralph/ralph_loop.sh b/ralph/ralph_loop.sh index f456918..86f4771 100644 --- a/ralph/ralph_loop.sh +++ b/ralph/ralph_loop.sh @@ -2839,7 +2839,9 @@ main() { init_metrics log_status "INFO" "Starting main loop..." - + + set +e + while true; do loop_count=$((loop_count + 1))