Skip to content

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.

test(execution): document compatibility scheduler ownership

JPPhoto5705887535e7
diff --git a/invokeai/app/services/shared/README.md b/invokeai/app/services/shared/README.md
index 1de97cdf98..b547813e36 100644
--- a/invokeai/app/services/shared/README.md
+++ b/invokeai/app/services/shared/README.md
@@ -140,8 +140,12 @@ seven `Iterate` nodes and seven-component frame paths, with the same empty-strea
checkpoint, source-completion, and failure-parity guarantees.
Three or more body-mediated branches, fan-in with four or more direct branches,
broader nested iterators, and mixed control flow outside the bounded
-per-item topology retain materializer copy expansion,
-grouping, and empty-source handling on the legacy compatibility route.
+per-item topology retain `_ExecutionMaterializer` ownership for copy expansion,
+grouping, and empty-source handling. `_GenericGraphSchedulerAdapter` may still
+own 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.
The exact seventeen-node/sixteen-edge serial chain extends the same planner to
eight `Iterate` nodes and eight-component frame paths, with the same
diff --git a/tests/app/services/shared/test_execution_engine_differential.py b/tests/app/services/shared/test_execution_engine_differential.py
index 4ba2780d6b..307f945fb1 100644
--- a/tests/app/services/shared/test_execution_engine_differential.py
+++ b/tests/app/services/shared/test_execution_engine_differential.py
@@ -5014,6 +5014,9 @@ def test_body_iterate_fan_in_unsupported_topology_uses_compatibility_fallback()
GraphExecutionState(graph=graph), force_compatibility_scheduler=True
)
+ assert isinstance(generic_state._execution_scheduler, _GenericGraphSchedulerAdapter) and isinstance(
+ compatibility_state._execution_scheduler, _ExecutionScheduler
+ )
assert generic_trace == compatibility_trace
generic_collection = _source_output(generic_state, "collect").collection
compatibility_collection = _source_output(compatibility_state, "collect").collection