This is an automated email from the ASF dual-hosted git repository.

zihaoxiang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 87f6b2fd04 [Chore] Hotfix ci error (#17172)
87f6b2fd04 is described below

commit 87f6b2fd04a944c4a3562ef677397fac9b9a993e
Author: xiangzihao <[email protected]>
AuthorDate: Mon May 12 18:06:35 2025 +0800

    [Chore] Hotfix ci error (#17172)
---
 .dlc.json                  |  2 +-
 .github/workflows/docs.yml | 23 +++++++++++++++++++----
 2 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/.dlc.json b/.dlc.json
index 8d1d9ab6ef..51f54c3f25 100644
--- a/.dlc.json
+++ b/.dlc.json
@@ -34,6 +34,6 @@
   "timeout": "10s",
   "retryOn429": true,
   "retryCount": 10,
-  "fallbackRetryDelay": "1000s",
+  "fallbackRetryDelay": "10s",
   "aliveStatusCodes": [200, 401, 403, 0]
 }
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index cd76ec48a4..05b705844f 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -61,15 +61,30 @@ jobs:
         uses: ./.github/actions/workflow-telemetry-action
         with:
           comment_on_pr: false
-      - run: sudo npm install -g [email protected]
-      - run: sudo apt install plocate -y
+      - run: sudo npm install -g [email protected]
+      - run: sudo apt install plocate -y && sudo updatedb
       # NOTE: Change command from `find . -name "*.md"` to `find . -not -path 
"*/node_modules/*" -not -path "*/.tox/*" -name "*.md"`
       # if you want to run check locally
-      - run: |
+      - name: Check Dead Links
+        run: |
+          set -xe
+          MAX_CONCURRENCY=6
+          EXIT_CODE=0
+  
+          cleanup() {
+            pkill -P $$
+            exit "$EXIT_CODE"
+          }
+          
+          trap cleanup SIGINT SIGTERM
+          
           for file in $(locate "$PWD*/*.md" | grep -v 
./deploy/terraform/aws/README.md | grep -v ./.github); do
+            while [ $(jobs -r | wc -l) -ge "$MAX_CONCURRENCY" ]; do
+              wait -n || { EXIT_CODE=$?; cleanup; }
+            done
             markdown-link-check -c .dlc.json -q "$file" &
           done
-          wait
+          wait || { EXIT_CODE=$?; cleanup; }
   paths-filter:
     name: Helm-Doc-Path-Filter
     runs-on: ubuntu-latest

Reply via email to