mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
doc(task): improve TemplatedTask example
This commit is contained in:
@@ -32,9 +32,17 @@ import lombok.experimental.SuperBuilder;
|
|||||||
examples = {
|
examples = {
|
||||||
@Example(
|
@Example(
|
||||||
code = """
|
code = """
|
||||||
spec: |
|
id: templated_task
|
||||||
type: io.kestra.plugin.core.http.Download
|
namespace: company.team
|
||||||
{{ task.property }}: {{ task.value }}
|
variables:
|
||||||
|
property: uri
|
||||||
|
value: https://kestra.io
|
||||||
|
tasks:
|
||||||
|
- id: templated_task
|
||||||
|
type: io.kestra.plugin.core.templating.TemplatedTask
|
||||||
|
spec: |
|
||||||
|
type: io.kestra.plugin.core.http.Download
|
||||||
|
{{ vars.property }}: {{ vars.value }}
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user