maubot-media/maubot.yaml
Maddox c62bb9c03e 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

12 lines
186 B
YAML

maubot: 0.3.1
id: com.3ddbrewery.media
version: 0.5.1
license: MIT
modules:
- media_bot
main_class: MediaBot
config: true
extra_files:
- base-config.yaml
database: true
webapp: true