InvokeAI/invokeai/app/api/routers
psychedelicious 93e4c3dbc2 feat(app): update queue item's session on session completion
The session is never updated in the queue after it is first enqueued. As a result, the queue detail view in the frontend never never updates and the session itself doesn't show outputs, execution graph, etc.

We need a new method on the queue service to update a queue item's session, then call it before updating the queue item's status.

Queue item status may be updated via a session-type event _or_ queue-type event. Adding the updated session to all these events is a hairy - simpler to just update the session before we do anything that could trigger a queue item status change event:
- Before calling `emit_session_complete` in the processor (handles session error, completed and cancel events and the corresponding queue events)
- Before calling `cancel_queue_item` in the processor (handles another way queue items can be canceled, outside the session execution loop)

When serializing the session, both in the new service method and the `get_queue_item` endpoint, we need to use `exclude_none=True` to prevent unexpected validation errors.
2024-05-24 08:59:49 +10:00
..
app_info.py fix(nodes): fix nsfw checker model download 2024-05-14 07:23:38 +10:00
board_images.py Resolving merge conflicts for flake8 2023-08-18 15:52:04 +10:00
boards.py feat: refactor services folder/module structure 2023-10-12 12:15:06 -04:00
download_queue.py fix a number of typechecking errors 2024-03-01 10:42:33 +11:00
images.py feat(api): downgrade metadata parse warnings to debug 2024-05-23 22:48:34 +10:00
model_manager.py fix(api): retain cover image when converting model to diffusers 2024-05-13 08:46:07 +10:00
session_queue.py feat(app): update queue item's session on session completion 2024-05-24 08:59:49 +10:00
utilities.py feat(api): add max_prompts constraints 2023-12-29 08:26:14 -05:00
workflows.py feat: workflow library (#5148) 2023-12-09 09:48:38 +11:00