Spaces:
Running
Running
fix hf ping
Browse files
.github/workflows/ping_hf.yml
CHANGED
|
@@ -10,11 +10,11 @@ jobs:
|
|
| 10 |
runs-on: ubuntu-latest
|
| 11 |
steps:
|
| 12 |
- name: Wake up EmCoder Model API
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
| 10 |
runs-on: ubuntu-latest
|
| 11 |
steps:
|
| 12 |
- name: Wake up EmCoder Model API
|
| 13 |
+
run: |
|
| 14 |
+
STATUS=$(curl -L -s -o /dev/null -w "%{http_code}" \
|
| 15 |
+
--retry 5 \
|
| 16 |
+
--retry-delay 15 \
|
| 17 |
+
--retry-all-errors \
|
| 18 |
+
"https://yezdata-emcoder-api-ui.hf.space/health")
|
| 19 |
+
echo "EmCoder Status: $STATUS"
|
| 20 |
+
if [ "$STATUS" -ne 200 ]; then exit 1; fi
|