InvokeAI/invokeai/app/services
psychedelicious 2cb51bff11 refactor(nodes): merge processors
Consolidate graph processing logic into session processor.

With graphs as the unit of work, and the session queue distributing graphs, we no longer need the invocation queue or processor.

Instead, the session processor dequeues the next session and processes it in a simple loop, greatly simplifying the app.

- Remove `graph_execution_manager` service.
- Remove `queue` (invocation queue) service.
- Remove `processor` (invocation processor) service.
- Remove queue-related logic from `Invoker`. It now only starts and stops the services, providing them with access to other services.
- Remove unused `invocation_retrieval_error` and `session_retrieval_error` events, these are no longer needed.
- Clean up stats service now that it is less coupled to the rest of the app.
- Refactor cancellation logic - cancellations now originate from session queue (i.e. HTTP cancel endpoint) and are emitted as events. Processor gets the events and sets the canceled event. Access to this event is provided to the invocation context for e.g. the step callback.
- Remove `sessions` router; it provided access to `graph_executions` but that no longer exists.
2024-02-20 09:54:01 +11:00
..
board_image_records feat(db): add SQLiteMigrator to perform db migrations 2023-12-11 16:14:25 +11:00
board_images feat: refactor services folder/module structure 2023-10-12 12:15:06 -04:00
board_records feat(db): add SQLiteMigrator to perform db migrations 2023-12-11 16:14:25 +11:00
boards feat(api): chore: pydantic & fastapi upgrade 2023-10-17 14:59:25 +11:00
config final tidying before marking PR as ready for review 2024-02-19 08:16:56 +11:00
download Fix issues identified during PR review by RyanjDick and brandonrising 2024-02-19 08:16:56 +11:00
events refactor(nodes): merge processors 2024-02-20 09:54:01 +11:00
image_files tidy(nodes): move all field things to fields.py 2024-02-15 17:30:02 +11:00
image_records tidy(nodes): move all field things to fields.py 2024-02-15 17:30:02 +11:00
images tidy(nodes): move all field things to fields.py 2024-02-15 17:30:02 +11:00
invocation_cache feat(nodes): replace latents service with tensors and conditioning services 2024-02-15 17:30:03 +11:00
invocation_stats refactor(nodes): merge processors 2024-02-20 09:54:01 +11:00
item_storage revert(nodes): revert making tensors/conditioning use item storage 2024-02-15 17:30:03 +11:00
model_install final tidying before marking PR as ready for review 2024-02-19 08:16:56 +11:00
model_load refactor(nodes): merge processors 2024-02-20 09:54:01 +11:00
model_manager final tidying before marking PR as ready for review 2024-02-19 08:16:56 +11:00
model_metadata Fix issues identified during PR review by RyanjDick and brandonrising 2024-02-19 08:16:56 +11:00
model_records Fix issues identified during PR review by RyanjDick and brandonrising 2024-02-19 08:16:56 +11:00
names feat: refactor services folder/module structure 2023-10-12 12:15:06 -04:00
object_serializer feat(nodes): use TemporaryDirectory to handle ephemeral storage in ObjectSerializerDisk 2024-02-15 17:30:03 +11:00
session_processor refactor(nodes): merge processors 2024-02-20 09:54:01 +11:00
session_queue refactor(nodes): merge processors 2024-02-20 09:54:01 +11:00
shared refactor(nodes): merge processors 2024-02-20 09:54:01 +11:00
urls feat: refactor services folder/module structure 2023-10-12 12:15:06 -04:00
workflow_records add project as category to back-end 2024-01-24 10:59:04 +11:00
__init__.py all files migrated; tweaks needed 2023-03-03 00:02:15 -05:00
invocation_services.py refactor(nodes): merge processors 2024-02-20 09:54:01 +11:00
invoker.py refactor(nodes): merge processors 2024-02-20 09:54:01 +11:00