Skip to content

Pool Usage Telemetry #5

Pool Usage Telemetry

Pool Usage Telemetry #5

name: Pool Usage Telemetry
on:
schedule:
# Run daily at 00:00 UTC
- cron: '0 0 * * *'
workflow_dispatch: # Allow manual trigger
jobs:
telemetry:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
env:
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install Python dependencies
working-directory: ./dev
run: |
pip install -r requirements.txt
pip install huggingface_hub
pip install wandb>=0.16
- name: Run telemetry script
env:
WANDB_API_KEY: ${{ secrets.WANDB_API_KEY }}
run: |
python monitor_pool_usage.py