Skip to content

Fix graph stall for collectors downstream of empty iterators#9349

Open
JPPhoto wants to merge 3 commits into
invoke-ai:mainfrom
JPPhoto:fix-empty-collector-stall
Open

Fix graph stall for collectors downstream of empty iterators#9349
JPPhoto wants to merge 3 commits into
invoke-ai:mainfrom
JPPhoto:fix-empty-collector-stall

Conversation

@JPPhoto

@JPPhoto JPPhoto commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes graph execution stalling when a Collect node is downstream of an iterator over an empty collection.

Zero-iteration expansions are now explicitly recorded as complete. This allows downstream collectors to execute with an empty collection, typed consumers to receive [], and the session to report completion.

Collector output validation now handles materialized collectors with no runtime input edges. In this case, the already-validated source graph remains authoritative for type compatibility.

Related Issues / Discussions

Closes #9347

QA Instructions

Added coverage for:

  • IntegerCollection([]) -> Iterate -> Add -> Collect -> typed consumer
  • Nested empty Iterate -> Collect -> Iterate -> Collect chains
  • Collector output and typed consumer both receiving []
  • GraphExecutionState.is_complete() returning True

Merge Plan

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@JPPhoto JPPhoto added the 6.14.x label Jul 11, 2026
@JPPhoto JPPhoto moved this to 6.14.x Theme: USER EXPERIENCE in Invoke - Community Roadmap Jul 11, 2026
@github-actions github-actions Bot added python PRs that change python files services PRs that change app services python-tests PRs that change python tests labels Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.14.x python PRs that change python files python-tests PRs that change python tests services PRs that change app services

Projects

Status: 6.14.x Theme: USER EXPERIENCE

Development

Successfully merging this pull request may close these issues.

Graph execution stalls when a Collect node is fed by an iterator over an empty collection

2 participants