Files
InvokeAI/tests
Alexander Eichhorn 0a428ffff4 Migrate session_queue to SQLModel (Phase 3)
Port SqliteSessionQueue to a SQLAlchemy Core / SQLModel hybrid that keeps the
existing public API and DB schema (migrations and triggers untouched). Hot
paths (enqueue bulk insert, dequeue, bulk cancel/delete, list with cursor
pagination, status aggregations) use Core to avoid ORM hydration overhead;
single-row reads stay ORM-style for clarity.

- Add SqlModelSessionQueue alongside the legacy SqliteSessionQueue
- Add the missing `workflow` column to SessionQueueTable (was added by
  migration_2 but never declared on the SQLModel)
- Wire dependencies.py to the new implementation
- Add 36 unit tests covering enqueue/dequeue, status mutations, bulk
  cancel/delete, prune-to-limit, retry, pagination and aggregations
- Avoid nested write sessions on the single StaticPool connection by reading
  the current item before opening the outer write session
2026-04-20 23:43:24 +02:00
..
2024-03-01 10:42:33 +11:00
2023-02-24 18:57:02 -08:00
2026-04-16 22:03:05 -04:00
2024-08-08 15:20:43 -04:00
2025-03-25 19:21:14 +11:00
2024-03-01 10:42:33 +11:00