maubot-media/media_bot
Maddox eb9fc07021 v0.5.1: defensive DB bootstrap + error-tolerant digest loop
The v0.4 schema migration silently failed on first deploy — Maubot's
UpgradeTable hook didn't create the subscriptions / digest_state tables
in the shared Postgres instance. When the digest fired at 8 AM, the
SELECT against digest_state raised, the loop's only except was
CancelledError, and the task crashed silently. No digest, no logs.

Two fixes:
- _ensure_db_schema() runs CREATE TABLE IF NOT EXISTS on start() so
  the bot self-heals if migrations don't run for any reason
- digest loop's inner work is now wrapped — any exception sleeps an
  hour and retries instead of killing the whole schedule
2026-04-29 08:30:48 -04:00
..
clients v0.5.0: Lidarr music search + add 2026-04-29 07:03:13 -04:00
__init__.py Initial commit: media bot v0.1.0 2026-04-28 08:22:38 -04:00
bot.py v0.5.1: defensive DB bootstrap + error-tolerant digest loop 2026-04-29 08:30:48 -04:00
db.py v0.4.2: SQLite, subscriptions, Sonarr webhook, daily digest 2026-04-28 19:13:19 -04:00