Core Plugins and tasks TemplatedTask

Core Plugins and tasks TemplatedTask

Certified

Render and run a task from a templated spec.

Renders a YAML task definition from spec using Pebble and executes it. The rendered task must be a RunnableTask and cannot itself be TemplatedTask.

Useful for highly dynamic task definitions driven by inputs or previous outputs.

yaml
type: io.kestra.plugin.core.templating.TemplatedTask
yaml
id: templatedtask
type: io.kestra.plugin.core.templating.TemplatedTask
spec: |
  type: io.kestra.plugin.core.http.Download
  {{ task.property }}: {{ task.value }}
Properties

The templated task specification

Reference (ref) of the pluginDefaults to apply to this task.