fleet-memory/hindsight-api/hindsight_api
Chris Bartholomew 657fe023b2
fix: run migrations on tenant schemas at startup and harden worker poller (#237)
Tenant schemas were never migrated when new migrations were deployed.
Only the public schema was migrated at startup, and tenant schemas only
got migrations when first provisioned. This meant existing tenants
missed any new columns (e.g. task_payload, worker_id, claimed_at on
async_operations), causing the worker poller to crash silently.

Changes:
- Run migrations on all existing tenant schemas at startup when a
  tenant_extension is configured. Each schema migration is wrapped in
  try/except so one failure doesn't block others.
- Add try/except in WorkerPoller.recover_own_tasks() so a broken
  schema doesn't prevent the polling loop from starting.
- Add try/except in WorkerPoller._claim_batch_for_schema() so a
  broken schema doesn't prevent claiming tasks from other schemas.
2026-01-29 15:03:20 -05:00
..
admin feat: new 'worker' service (#176) 2026-01-20 10:17:56 +01:00
alembic fix: misc fixes for observations and mental models (#209) 2026-01-27 15:37:57 +01:00
api fix: /version endpoint return wrong version (#224) 2026-01-29 08:40:01 +01:00
engine fix: run migrations on tenant schemas at startup and harden worker poller (#237) 2026-01-29 15:03:20 -05:00
extensions feat: support different default pg schema (#222) 2026-01-28 18:14:44 +01:00
worker fix: run migrations on tenant schemas at startup and harden worker poller (#237) 2026-01-29 15:03:20 -05:00
__init__.py Release v0.4.2 2026-01-29 17:54:19 +01:00
banner.py fix: doc build and lint files (#34) 2025-12-16 13:49:09 +01:00
config.py feat: add more config options for llm retries (#234) 2026-01-29 17:50:43 +01:00
daemon.py fix: hindsight-embed on macos crashes (#228) 2026-01-29 16:57:51 +01:00
main.py feat: add more config options for llm retries (#234) 2026-01-29 17:50:43 +01:00
mcp_local.py feat(mcp): add timestamp to retain (#190) 2026-01-23 16:00:43 +01:00
mcp_tools.py feat(mcp): add timestamp to retain (#190) 2026-01-23 16:00:43 +01:00
metrics.py feat: add tenant to metrics labels (#151) 2026-01-13 15:31:58 +01:00
migrations.py fix: batch queries on recall (#149) 2026-01-13 13:20:22 +01:00
models.py chore: drop unused access_count column (#178) 2026-01-20 10:36:02 +01:00
pg0.py feat: backup/restore (#110) 2026-01-07 11:29:50 +01:00
server.py Fix: Load extensions in server.py for multi-worker deployments (#155) 2026-01-13 17:55:33 +01:00