Template set
The hera.workflows.template_set module provides the TemplateSet class.
The TemplateSet class lets you create a collection of templates unattached to a Workflow.
Warning
This class is only for use with experimental Workflow decorators. Read the guide here.
The TemplateSet class can be used to arrange templates across modules in a package.
Source code in src/hera/workflows/template_set.py
script
script(**script_kwargs) -> Callable
A decorator that wraps a function into a Script object.
Using this decorator users can define a function that will be executed as a script in a container. Once the
Script is returned users can use it as they generally use a Script e.g. as a callable inside a DAG or Steps.
Note that invoking the function will result in the template associated with the script to be added to the
workflow context, so users do not have to worry about that.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**script_kwargs
|
Keyword arguments to be passed to the Script object. |
{}
|
Returns:
| Type | Description |
|---|---|
Callable
|
Function wrapper that holds a |
Source code in src/hera/workflows/_meta_mixins.py
660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 | |
container
container(**container_kwargs) -> Callable
Source code in src/hera/workflows/_meta_mixins.py
dag
dag(**dag_kwargs) -> Callable
steps
steps(**steps_kwargs) -> Callable