-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix various bugs in dag/steps decorator (#1221)
**Pull Request Checklist** * Fixes #1162 * Fixes #1171 * Fixes #1223 * Fixes #1218 * Fixes #1219 * Fixes #1222 * Fixes #1170 - [x] Tests added - [x] Documentation/examples added - [x] [Good commit messages](https://cbea.ms/git-commit/) and/or PR title **Description of PR** Various syntax-focused fixes from the issue, including (by commit order) * Function inputs for new-decorator functions can have no inputs, or one input which must be a subclass of the special `Input` class, anything else now raises an error * DAG Task/Step names no longer use underscores * Passing Input in the kwargs to a template call within a DAG function will now error (instead of silently ignoring) * Block use of new script decorator without special `Input` class * Add ArtifactLoaders to example where needed * Don't add a `path` for Steps/DAG artifact inputs (which would be a lint error) * Ignore Step/Task kwargs to allow local running * Keep Parameter/Artifact details for Steps/DAG outputs when hoisting output * Fix incorrect returns for Steps/DAG * Do not allow setting `result` or `exit_code` for Steps/DAG * Fix adding Steps/DAGs to TemplateSets --------- Signed-off-by: Elliot Gunton <[email protected]>
- Loading branch information
1 parent
7b7a8c7
commit 1b0cd7e
Showing
30 changed files
with
634 additions
and
242 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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
Oops, something went wrong.