Spaces:
Running
Running
Download .github/workflows/keep-hf-alive.yml from Ailixir-AI-Team/ailixir-api: direct link, hf CLI and curl.
- Browser
- Download file 720 Bytes
-
https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/main/.github/workflows/keep-hf-alive.yml
- Command line
-
hf download hf://spaces/Ailixir-AI-Team/ailixir-api/.github/workflows/keep-hf-alive.yml
-
curl -L -o keep-hf-alive.yml https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/main/.github/workflows/keep-hf-alive.yml
720 Bytes
| name: Keep HF Alive | |
| on: | |
| schedule: | |
| - cron: "0 */24 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| keep_hf_alive_job: | |
| name: keep hf alive job | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Hit main API health endpoint | |
| run: | | |
| curl -s -o /dev/null -w "%{http_code}" \ | |
| "https://Ailixir-AI-Team-ailixir-api.hf.space/api/ai-services/health" | |
| - name: Hit generation health endpoint | |
| run: | | |
| curl -s -o /dev/null -w "%{http_code}" \ | |
| "https://shdwrow-ailixir-generation.hf.space/health" | |
| - name: Hit chat bot health endpoint | |
| run: | | |
| curl -s -o /dev/null -w "%{http_code}" \ | |
| "https://shdwrow-ailixir-chat-bot.hf.space/health" | |