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
Copy file name to clipboardExpand all lines: src/hera/workflows/resources.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
"""The `hera.workflows.resources` module provides the [Resources][hera.workflows.resources.Resources] class for setting CPU, memory and other limits."""
1
+
"""The `hera.workflows.resources` module provides the Resources class for setting CPU, memory and other limits."""
Copy file name to clipboardExpand all lines: src/hera/workflows/script.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -138,9 +138,9 @@ class Script(
138
138
ResourceMixin,
139
139
VolumeMountMixin,
140
140
):
141
-
"""A Script in Argo Workflows acts as a wrapper around a [Container][hera.workflows.container.Container], where you can specify Python code to run through `source`.
141
+
"""A Script in Argo Workflows acts as a wrapper around a Container, where you can specify Python code to run through `source`.
142
142
143
-
In Hera, you should aim to use the [script decorator][hera.workflows.script.script], rather than the Script class directly.
143
+
In Hera, you should aim to use the script decorator, rather than the Script class directly.
144
144
You will need to refer to the Script class for the kwargs that the decorator can take, but your IDE should give you code completion and type hints.
145
145
"""
146
146
@@ -665,7 +665,7 @@ def _add_type_hints(
665
665
666
666
@_add_type_hints(Script)
667
667
defscript(**script_kwargs) ->Callable:
668
-
"""A decorator that wraps a function into a [Script][hera.workflows.script.Script] object.
668
+
"""A decorator that wraps a function into a Script object.
669
669
670
670
Using this decorator users can define a function that will be executed as a script in a container. Once the
671
671
`Script` is returned users can use it as they generally use a `Script` e.g. as a callable inside a DAG or Steps.
0 commit comments