Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
docs: add retry and fail-on-error to health check workflow
Sushmitha Malleshfaa8e45259c9
diff --git a/.github/workflows/docs.health-check.yml b/.github/workflows/docs.health-check.ymlindex a089b91f5..7b27e22f8 100644--- a/.github/workflows/docs.health-check.yml+++ b/.github/workflows/docs.health-check.yml@@ -23,12 +23,22 @@ jobs:local url="$2"shift 2CHECKED=$((CHECKED + 1))- if STATUS=$(curl -sL -o /dev/null -w "%{http_code}" --max-time 15 "$@" "$url" 2>/dev/null); then- :- else- STATUS="000"- fi- if [ "$STATUS" -ge 400 2>/dev/null ] || [ "$STATUS" = "000" ]; then+ local attempt=0+ local STATUS="000"+ while [ "$attempt" -lt 2 ]; do+ if STATUS=$(curl -sL -o /dev/null -w "%{http_code}" --max-time 15 "$@" "$url" 2>/dev/null); then+ :+ else+ STATUS="000"+ fi+ if [ "$STATUS" -ge 400 2>/dev/null ] || [ "$STATUS" = "000" ]; then+ attempt=$((attempt + 1))+ [ "$attempt" -lt 2 ] && sleep 3+ else+ break+ fi+ done+ if [ "$STATUS" -ge 400 2>/dev/null ] || [ "$STATUS" = "000" ]; thenecho "FAIL: ${label} → ${STATUS}"echo "${label} → ${STATUS}" >> "$FAIL_FILE"FAIL_COUNT=$((FAIL_COUNT + 1))@@ -103,3 +113,7 @@ jobs:payload: ${{ steps.check.outputs.slack_payload }}env:SLACK_WEBHOOK_URL: ${{ secrets.SLACK_POD_DX_WEBHOOK_URL }}++ - name: Fail on unhealthy endpoints+ if: steps.check.outputs.has_failures == 'true'+ run: exit 1