Support workflows on conditional pipeline blocks#14238
Draft
yiyixuxu wants to merge 1 commit into
Draft
Conversation
Move available_workflows/get_workflow from SequentialPipelineBlocks to the ModularPipelineBlocks base — they only need _workflow_map and get_execution_blocks, which ConditionalPipelineBlocks also has. Auto sub-blocks (encoders/core-denoise/decode) can now opt in with a _workflow_map using the same workflow names as the final blockset; flux2's vae encoder and core denoise steps demonstrate. A new tester mixin check (test_sub_block_workflow_map) asserts each opted-in sub-block resolves every workflow to the same blocks as the top-level expected_workflow_blocks entries under its path. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
yiyixuxu
marked this pull request as draft
July 19, 2026 07:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
this PR:
available_workflows/get_workflowfromSequentialPipelineBlocksto theModularPipelineBlocksbase.encoders/core-denoise/decode) can now opt in with a_workflow_mapusing the same workflow names as the final blocksettest_sub_block_workflow_mapthat asserts each opted-in sub-block resolves every workflow to the same blocks as the top-level expected_workflow_blocks entries under its path.