skill usage

This commit is contained in:
lachtan
2026-09-15 12:18:52 +02:00
parent ea70c10ea9
commit 2ee633f5ee
2 changed files with 40 additions and 60 deletions

View File

@@ -1,8 +1,9 @@
#!/usr/bin/env python3
"""Sample Ollama Cloud usage into db/ollama_usage.sqlite. Run from cron every minute.
Writes a `samples` row only when something changed; `meta` records every poll so a
gap in `samples` can be told apart from a poll that failed or never ran.
Writes a `samples` row only when something changed; `meta` holds a single row with
the last poll's timestamp and status, so a history that stopped moving can be told
apart from a poller that stopped running.
"""
from __future__ import annotations