InvokeAI/invokeai/app/util
psychedelicious 725c03cf87 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-03-01 10:42:33 +11:00
..
__init__.py feat(nodes): add list_images endpoint 2023-04-09 13:48:44 +10:00
controlnet_utils.py chore: ruff check - fix flake8-bugbear 2023-11-11 10:55:28 +11:00
metadata.py chore: ruff check - fix pycodestyle 2023-11-11 10:55:33 +11:00
metaenum.py feat(nodes): address feedback 2023-05-24 11:30:47 -04:00
misc.py fix a number of typechecking errors 2024-03-01 10:42:33 +11:00
model_exclude_null.py feat(api): chore: pydantic & fastapi upgrade 2023-10-17 14:59:25 +11:00
profiler.py feat: add profiler util (#5601) 2024-01-31 10:51:57 +00:00
step_callback.py refactor(nodes): merge processors 2024-03-01 10:42:33 +11:00
thumbnails.py isort wip 2023-09-12 13:01:58 -04:00
ti_utils.py Ti trigger from prompt util (#5294) 2023-12-22 03:04:44 +00:00