You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Pull Request Checklist**
- [x] Fixes#1043
- [x] Tests added
- [ ] Documentation/examples added
- [x] [Good commit messages](https://cbea.ms/git-commit/) and/or PR
title
**Description of PR**
Adds the new dag decorator from HEP0001.
* Within the decorator function call we perform a static inspection of
inputs and outputs, add a `DAG` object to the Workflow, and finally
do a "run" of the DAG function code using a templated input to collect
the tasks
* Tasks that pass arguments simply take the templated input strings by
using pydantic's `construct` method to skip validation, and then pass
the strings around
* The dependencies between tasks are inferred automatically via
__getattr__ calls
on the Task object
* Add varname as a dependency to be able to get the python variable name
to use
as the task name (in the YAML)
* Make the _add_type_hints function work for *any* pydantic class
---------
Signed-off-by: Elliot Gunton <egunton@bloomberg.net>
See https://github.com/argoproj-labs/hera/blob/main/hep/proposals/0001-decorators.md#dag-template
The text was updated successfully, but these errors were encountered: