Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad committed Jul 12, 2024
1 parent 5f232ad commit 13c98e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/earthly-ci
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13c98e4

Please sign in to comment.