Skip to content

Commit 1850e10

Browse files
committed
wait longer because of intel ci seems very slow
1 parent 0e782a2 commit 1850e10

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/trigger-hpsf-gitlab-ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
echo "Waiting on GitLab pipeline $PIPELINE_ID..."
9191
9292
STATUS="running"
93-
MAX_WAIT=14400 # 4 hours
93+
MAX_WAIT=86400 # 24 hours
9494
ELAPSED=0
9595
9696
while [[ "$STATUS" == "running" || "$STATUS" == "pending" ]]; do
@@ -100,8 +100,13 @@ jobs:
100100
exit 1
101101
fi
102102
103-
sleep 300
104-
ELAPSED=$((ELAPSED + 300))
103+
if [ $ELAPSED -lt 7200 ]; then
104+
SLEEP_TIME=600 # 10 minutes
105+
else
106+
SLEEP_TIME=3600 # 1 hour
107+
fi
108+
sleep $SLEEP_TIME
109+
ELAPSED=$((ELAPSED + SLEEP_TIME))
105110
106111
STATUS=$(curl -s \
107112
"https://gitlab.spack.io/api/v4/projects/${{ env.GITLAB_PROJECT_ID }}/pipelines/$PIPELINE_ID" \

0 commit comments

Comments
 (0)