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
test(execution): document legacy scheduler ownership
JPPhoto1f87728a68f9
diff --git a/invokeai/app/services/shared/README.md b/invokeai/app/services/shared/README.mdindex b547813e36..37b6195981 100644--- a/invokeai/app/services/shared/README.md+++ b/invokeai/app/services/shared/README.md@@ -143,9 +143,10 @@ broader nested iterators, and mixed control flow outside the boundedper-item topology retain `_ExecutionMaterializer` ownership for copy expansion,grouping, and empty-source handling. `_GenericGraphSchedulerAdapter` may stillown readiness for these unsupported fresh `Iterate`/`Collect` graphs; the-compatibility materializer owns expansion and materialization. Forced-compatibility runs and legacy snapshots retain `_ExecutionScheduler` and-compatibility-materializer ownership.+compatibility materializer owns expansion and materialization. Scheduler/materializer+ownership is topology-dependent: pure legacy `Iterate`/`Collect` uses generic scheduler+readiness with compatibility materializer expansion; forced compatibility and legacy+control-flow paths retain `_ExecutionScheduler` where applicable.The exact seventeen-node/sixteen-edge serial chain extends the same planner toeight `Iterate` nodes and eight-component frame paths, with the samediff --git a/tests/app/services/shared/test_execution_engine_differential.py b/tests/app/services/shared/test_execution_engine_differential.pyindex 307f945fb1..6d016b48ca 100644--- a/tests/app/services/shared/test_execution_engine_differential.py+++ b/tests/app/services/shared/test_execution_engine_differential.py@@ -4064,6 +4064,7 @@ def test_legacy_direct_iterate_body_collect_snapshot_uses_compatibility_materialwith patch.object(graph_module, "_ExecutionMaterializer", wraps=materializer_type) as materializer:restored = load_execution_state(snapshot)assert restored._legacy_snapshot_loaded+ assert isinstance(restored._scheduler(), _GenericGraphSchedulerAdapter)resumed_trace, restored = _run_graph(restored)assert materializer.call_count == 1