InvokeAI/invokeai/app/services/events
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
..
__init__.py define install abstract base class 2023-11-20 21:57:10 -05:00
events_base.py feat(app): add model_install_download_started event 2024-06-17 09:50:25 +10:00
events_common.py feat(app): add origin to session queue 2024-08-23 19:46:03 +10:00
events_fastapievents.py fix(app): create reference to events task to prevent accidental GC 2024-08-12 07:49:58 +10:00