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
12 lines
186 B
YAML
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
|