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 .md to any kestra.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 artifactAsset
What it isA UI component bundled in a pluginA record of a resource, with metadata and lineage
Who creates itThe plugin developer, once for the pluginTasks that declare or emit assets when they run, or you, from the UI or API
What it holdsNothing. It displays the data Kestra passes to it.Metadata, kept until you delete or purge the asset
Where you see itSlots in the UI: the Artifacts tab of an execution or of a task run’s popup, and asset cards in the dependency graphThe Assets page, an asset’s Dependencies tab, and the Assets tab of an execution or namespace
EditionAll 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.

SlotWhere it appearsWhat the artifact receives
execution-artifactThe Artifacts tab of an execution, where a task type can list several artifacts, and the Artifacts tab of a task run’s popupThe task definition, the task run’s outputs, metrics, and live progress, and the results of the plugin’s own endpoints
asset-card-footerBelow an asset’s card in the dependency graphThe 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 tasksArtifactWhat it showsPlugin version
JDBC Query, Queries, and Batch (all databases)Execution detailsThe 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 dropped3.0.0 and later
Airbyte connections.Sync and connections.CheckStatus, and Airbyte Cloud jobs.Sync and jobs.ResetAirbyte detailsThe 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 Airbyte1.8.0 and later
dbt DbtCLI, and dbt Cloud TriggerRun and CheckStatusModel graph and Compiled SQLThe run’s models as a graph colored by run status, and each model’s compiled SQL when outputCompiledSql is true2.6.0 and later
Fivetran connectors.Sync and connectors.StatusFivetran detailsThe connector’s sync state, schedule, and freshness, its last success and failure, its alerts, and a breakdown per table2.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.

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 sets assets.enableAuto: true. Kestra writes them when they’re emitted. A task that creates dynamic task runs emits the assets of each one with runContext.assets().emitFor(taskRun, ...) and registers the task run with runContext.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?