InvokeAI/invokeai/app/services/shared/sqlite_migrator
psychedelicious 6e5ff7b79c feat(app): add origin to session queue
The origin is an optional field indicating the queue item's origin. For example, "canvas" when the queue item originated from the canvas or "workflows" when the queue item originated from the workflows tab. If omitted, we assume the queue item originated from the API directly.

- Add migration to add the nullable column to the `session_queue` table.
- Update relevant event payloads with the new field.
- Add `cancel_by_origin` method to `session_queue` service and corresponding route. This is required for the canvas to bail out early when staging images.
- Add `origin` to both `SessionQueueItem` and `Batch` - it needs to be provided initially via the batch and then passed onto the queue item.
-
2024-08-23 19:46:03 +10:00
..
migrations feat(app): add origin to session queue 2024-08-23 19:46:03 +10:00
__init__.py feat(db): move sqlite_migrator into its own module 2023-12-11 16:41:30 +11:00
sqlite_migrator_common.py fix ruff issues 2024-04-12 07:19:16 +10:00
sqlite_migrator_impl.py feat(db): back up database before running migrations 2024-04-02 09:10:53 +11:00