Spaces:
Running
Running
Download .github/workflows/ping_hf.yml from yezdata/emcoder-api-ui: direct link, hf CLI and curl.
- Browser
- Download file 515 Bytes
-
https://huggingface.co/spaces/yezdata/emcoder-api-ui/resolve/main/.github/workflows/ping_hf.yml
- Command line
-
hf download hf://spaces/yezdata/emcoder-api-ui/.github/workflows/ping_hf.yml
-
curl -L -o ping_hf.yml https://huggingface.co/spaces/yezdata/emcoder-api-ui/resolve/main/.github/workflows/ping_hf.yml
515 Bytes
| name: HF Space Ping - EmCoder API & UI | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| ping: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Wake up EmCoder Model API | |
| run: | | |
| STATUS=$(curl -L -s -o /dev/null -w "%{http_code}" \ | |
| --retry 5 \ | |
| --retry-delay 15 \ | |
| --retry-all-errors \ | |
| "https://yezdata-emcoder-api-ui.hf.space/health") | |
| echo "EmCoder Status: $STATUS" | |
| if [ "$STATUS" -ne 200 ]; then exit 1; fi | |