Pipeline: add an optional 'if' and 'after' parameters for conditional tasks and better control flow#345
Draft
ljgray wants to merge 5 commits into
Draft
Pipeline: add an optional 'if' and 'after' parameters for conditional tasks and better control flow#345ljgray wants to merge 5 commits into
ljgray wants to merge 5 commits into
Conversation
ljgray
force-pushed
the
ljg/pipeline-if
branch
5 times, most recently
from
July 14, 2026 19:23
9763123 to
face599
Compare
ljgray
force-pushed
the
ljg/pipeline-if
branch
2 times, most recently
from
July 14, 2026 20:24
510ddc3 to
f4c13a3
Compare
…e product to exist before a task can run
ljgray
force-pushed
the
ljg/pipeline-if
branch
3 times, most recently
from
July 14, 2026 22:58
b53841a to
61e7b6d
Compare
ljgray
marked this pull request as draft
July 14, 2026 23:16
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.
if
Useful for templates pipelines where we might want to skip a task under certain conditions, without messing up key inheritance. The pipeline will internally replace the conditional task with a
NoOpif the conditional isFalse, in which case data keys are simply passed through. Naturally, this will fail for a task which produces a different number of outputs than it takes as input, or which does not intend to pass through the input, so this can likely be made to be more robust.after
Effectively just streamlines the
WaitUntiltask - adds a set of data product keys (similar toin,out, andrequires) which indicate data products that must exist before a task can run, but are not actually consumed by the task.IO
Adds two extra tasks: