From 13c98e4eda2b97242fb0919e37f79bfc0ae3ad25 Mon Sep 17 00:00:00 2001 From: ludamad Date: Fri, 12 Jul 2024 17:31:13 +0000 Subject: [PATCH] fix --- scripts/earthly-ci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/earthly-ci b/scripts/earthly-ci index 3701f36eede..21acafe80db 100755 --- a/scripts/earthly-ci +++ b/scripts/earthly-ci @@ -47,7 +47,7 @@ while [ $ATTEMPT_COUNT -lt $MAX_ATTEMPTS ]; do # Check the output for specific errors if grep 'failed to get edge: inconsistent graph state' $OUTPUT_FILE >/dev/null || grep 'failed to get state for index' $OUTPUT_FILE >/dev/null ; then INCONSISTENT_GRAPH_STATE_COUNT=$((INCONSISTENT_GRAPH_STATE_COUNT + 1)) - if [ "$INCONSISTENT_GRAPH_STATE_COUNT" -ge 2 ]; then + if [ "$INCONSISTENT_GRAPH_STATE_COUNT" -ge 3 ]; then echo "Unable to recover from 'inconsistent graph state' or 'failed to get state for index'. Trying 'earthly prune' and starting again." earthly prune else