We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e782a2 commit 1850e10Copy full SHA for 1850e10
.github/workflows/trigger-hpsf-gitlab-ci.yml
@@ -90,7 +90,7 @@ jobs:
90
echo "Waiting on GitLab pipeline $PIPELINE_ID..."
91
92
STATUS="running"
93
- MAX_WAIT=14400 # 4 hours
+ MAX_WAIT=86400 # 24 hours
94
ELAPSED=0
95
96
while [[ "$STATUS" == "running" || "$STATUS" == "pending" ]]; do
@@ -100,8 +100,13 @@ jobs:
100
exit 1
101
fi
102
103
- sleep 300
104
- ELAPSED=$((ELAPSED + 300))
+ if [ $ELAPSED -lt 7200 ]; then
+ SLEEP_TIME=600 # 10 minutes
105
+ else
106
+ SLEEP_TIME=3600 # 1 hour
107
+ fi
108
+ sleep $SLEEP_TIME
109
+ ELAPSED=$((ELAPSED + SLEEP_TIME))
110
111
STATUS=$(curl -s \
112
"https://gitlab.spack.io/api/v4/projects/${{ env.GITLAB_PROJECT_ID }}/pipelines/$PIPELINE_ID" \
0 commit comments