How Plugins Write Data as Assets and Display It with Artifacts
For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append.mdto anykestra.io/docs/*URL for plain Markdown.
Plugins extend Kestra in two complementary ways: they write data as assets, and they display data with artifacts.
An asset is a record that a plugin’s tasks write about a resource, such as a table or a file: its metadata and its links to the flows and other assets around it. A plugin artifact is front-end code that a plugin ships so that Kestra can display that plugin’s data in the UI, in places Kestra reserves for plugins. Assets hold the data. Artifacts decide how a plugin shows it.
At a glance
| Plugin artifact | Asset | |
|---|---|---|
| What it is | A UI component bundled in a plugin | A record of a resource, with metadata and lineage |
| Who creates it | The plugin developer, once for the plugin | Tasks that declare or emit assets when they run, or you, from the UI or API |
| What it holds | Nothing. It displays the data Kestra passes to it. | Metadata, kept until you delete or purge the asset |
| Where you see it | Slots in the UI: the Artifacts tab of an execution or of a task run’s popup, and asset cards in the dependency graph | The Assets page, an asset’s Dependencies tab, and the Assets tab of an execution or namespace |
| Edition | All editions. A plugin can mark an artifact as Enterprise-only. | Enterprise Edition and Kestra Cloud |
Where artifacts appear
Kestra renders artifacts in slots. A plugin declares which slots its artifacts fill, and Kestra loads the matching artifact wherever that slot appears. You don’t configure artifacts in your flows: if a plugin you use ships one, it appears automatically.
| Slot | Where it appears | What the artifact receives |
|---|---|---|
execution-artifact | The Artifacts tab of an execution, where a task type can list several artifacts, and the Artifacts tab of a task run’s popup | The task definition, the task run’s outputs, metrics, and live progress, and the results of the plugin’s own endpoints |
asset-card-footer | Below an asset’s card in the dependency graph | The asset’s ID, type, and metadata, and the current tenant |
For execution-artifact, Kestra picks the artifact from the task’s type, or from its task runner’s type when the runner ships its own artifact.
Kestra 2.0.x renders artifacts in topology slots instead: inside a task’s node, in the task drawer, and in a full-screen dialog opened from the node. Kestra 2.1 ignores those slots. See Kestra 2.0.x: topology slots.
For asset-card-footer, Kestra picks the artifact from the type of the task that produced the asset, which is the task of the asset’s newest successful write. An asset that no task has written, such as an External placeholder or an asset created through the API, has no footer.
To build an artifact, see Develop Plugin Artifacts.
Data plugins with artifacts
These data plugins add an artifact to the Artifacts tab for each run of the listed tasks. To see where the tab appears, see Artifacts.
| Plugin and tasks | Artifact | What it shows | Plugin version |
|---|---|---|---|
JDBC Query, Queries, and Batch (all databases) | Execution details | The SQL that ran, the rows it affected or fetched, the size of stored results, its duration and warnings, and the tables it read, wrote, created, or dropped | 3.0.0 and later |
Airbyte connections.Sync and connections.CheckStatus, and Airbyte Cloud jobs.Sync and jobs.Reset | Airbyte details | The job’s status, duration, attempts, and rows and bytes synced, the records emitted, committed, and rejected per stream, failure reasons, and the connection’s source and destination, with a link to the job in Airbyte | 1.8.0 and later |
dbt DbtCLI, and dbt Cloud TriggerRun and CheckStatus | Model graph and Compiled SQL | The run’s models as a graph colored by run status, and each model’s compiled SQL when outputCompiledSql is true | 2.6.0 and later |
Fivetran connectors.Sync and connectors.Status | Fivetran details | The connector’s sync state, schedule, and freshness, its last success and failure, its alerts, and a breakdown per table | 2.1.0 and later |
How assets and artifacts work together
The asset-card-footer slot connects the two. When a task runs, its plugin writes values to the asset’s metadata, and the plugin’s artifact displays those values below the asset’s card. The metadata stays on the asset, so the card shows the asset’s latest state across executions. You can check the health of every asset across your flows from the dependency graph, and open an execution only when something needs attention.
Assets, including the asset-card-footer slot, are available in Enterprise Edition and Kestra Cloud.
Asset metadata also drives flows. An EventTrigger can filter on metadata values to start a flow when an asset changes, for example when a test result written to the asset reports a failure.
Choosing what to build
If you develop a plugin, the two features cover different needs:
- Write asset metadata for data that must outlast a single execution, appear alongside lineage, or trigger flows. Emit assets with
runContext.assets().emit(...). Emitted assets are recorded only when the task setsassets.enableAuto: true. Kestra writes them when they’re emitted. A task that creates dynamic task runs emits the assets of each one withrunContext.assets().emitFor(taskRun, ...)and registers the task run withrunContext.dynamicWorkerResult(...). Kestra sends those assets when the attempt ends, with each task run’s state and dates, and drops the ones for a task run that wasn’t registered. - Build an artifact to display data: a task run’s results in the topology, or an asset’s metadata on its card.
An artifact displays the data Kestra passes to it, such as a task run’s outputs and metrics or an asset’s metadata, and doesn’t call the Kestra API itself. When an artifact needs more data, the data should come from the task: as an output for a task run, or as metadata for an asset.
Was this page helpful?