Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
refactor: remove unused execution engine helpers
JPPhotoc3a52fac1d9f
diff --git a/invokeai/app/services/shared/execution_engine/scheduler.py b/invokeai/app/services/shared/execution_engine/scheduler.pyindex e556eccfb2..e2b39ca81c 100644--- a/invokeai/app/services/shared/execution_engine/scheduler.py+++ b/invokeai/app/services/shared/execution_engine/scheduler.py@@ -235,12 +235,6 @@ class ExecutionScheduler:self._active_class: str | None = Noneself.rebuild_ready()- def _priority(self, class_name: str) -> int:- try:- return self.ready_order.index(class_name)- except ValueError:- return len(self.ready_order)-def _passes_ready_predicate(self, node_id: NodeId) -> bool:return self._ready_predicate is None or self._ready_predicate(node_id)diff --git a/invokeai/app/services/shared/graph.py b/invokeai/app/services/shared/graph.pyindex 1010d01da8..b1308342e0 100644--- a/invokeai/app/services/shared/graph.py+++ b/invokeai/app/services/shared/graph.py@@ -640,9 +640,6 @@ class GraphExecutionState(BaseModel):(edge.source.node_id, edge.destination.node_id) for edge in edges if edge.type == "default")- def _invalidate_execution_graph_flat(self) -> None:- self.__pydantic_private__["_runtime_state"].execution_graph_flat = None-def _mark_source_executed(self, source_node_id: str) -> None:self._tx_add_set(self.executed, source_node_id)self.__pydantic_private__["_runtime_state"].completed_source_ids_cache = None@@ -3292,9 +3289,6 @@ class GraphExecutionState(BaseModel):def _get_activation_dependencies(self, exec_node_id: str) -> tuple[ActivationDependency, ...]:return graph_if_runtime._get_activation_dependencies(self, exec_node_id)- def _remove_from_ready_queues(self, exec_node_id: str) -> None:- self._scheduler().remove_from_ready_queues(exec_node_id)-def _try_resolve_if_node(self, exec_node_id: str, *, enqueue: bool = True) -> None:scheduler = self._execution_schedulerif isinstance(scheduler, _GenericGraphSchedulerAdapter):@@ -4094,9 +4088,6 @@ class GraphExecutionState(BaseModel):return self._for_planner().iterator_graph(base)return self._materializer().iterator_graph(base)- def _get_node_iterators(self, node_id: str, it_graph: Optional["nx.DiGraph"] = None) -> list[str]:- return self._materializer().get_node_iterators(node_id, it_graph)-def _prepare(self, base_g: Optional["nx.DiGraph"] = None) -> Optional[str]:return self._materializer().prepare(base_g)@@ -4115,7 +4106,7 @@ class GraphExecutionState(BaseModel):def _prepare_inputs(self, node: BaseInvocation):self._runtime().prepare_inputs(node)- # TODO: Add API for modifying underlying graph that checks if the change will be valid given the current execution state+ # Reserved for a future graph-editing API that validates changes against the current execution state.def _is_edge_valid(self, edge: Edge) -> bool:try:self.graph._validate_edge(edge)