-
Notifications
You must be signed in to change notification settings - Fork 935
feature: conditionals for Argo Workflows #2550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 13 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
87f3bf5
wip
saikonen a00d57d
add conditional info to graph parsing
saikonen 3ee6557
correctly dump chosen step to disk for argo
saikonen 0e99798
fix conditional usage for argo DAG
saikonen d0a03fd
introduce script for parsing conditional input paths. rename and intr…
saikonen 2d8de92
cleanup
saikonen dca2f37
reworking conditional graph parsing
saikonen 511bd51
fix foreaches
saikonen 0a4f3c4
cleanup
saikonen 923f1d1
fix argo foreach template task-id output for conditional steps
saikonen 16f492f
WIP: fix foreach pathspecs for join step with conditional parents
saikonen 2c1d760
fix static joins and conditional_join again
saikonen 158f725
revert foreach case parsing and opt for exception for now. fix graph …
saikonen 6cc281c
reword foreach exception
saikonen 5145767
revert all changes to graph.py, moving all conditional parsing to arg…
saikonen d1e2707
fix conditional input-paths parsing failures
saikonen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| from math import inf | ||
| import sys | ||
| from metaflow.util import decompress_list, compress_list | ||
|
|
||
|
|
||
| def generate_input_paths(input_paths): | ||
| # => run_id/step/:foo,bar | ||
| paths = decompress_list(input_paths) | ||
|
|
||
| # some of the paths are going to be malformed due to never having executed per conditional. | ||
| # strip these out of the list. | ||
|
|
||
| trimmed = [path for path in paths if not "{{" in path] | ||
| return compress_list(trimmed, zlibmin=inf) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| print(generate_input_paths(sys.argv[1])) |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.