Skip to main content
Artifact events track artifact creation and updates. Asset events track data lineage through upstream references and downstream materializations.

Artifact events

prefect.artifact.created

Emitted when a new artifact is created.

Resource

LabelDescription
prefect.resource.idprefect.artifact.{uuid}
prefect.resource.nameArtifact key (when set)
This event has no related resources.

Payload

FieldTypeDescription
keystring or nullArtifact key
typestring or nullArtifact type (for example, markdown, table, progress, image)
descriptionstring or nullArtifact description

prefect.artifact.updated

Emitted when an existing artifact is updated.

Resource

LabelDescription
prefect.resource.idprefect.artifact.{uuid}
This event has no related resources.

Payload

The payload contains the fields that were updated, serialized from the update model. Common fields include data, description, and type.

Asset events

For more on assets and data lineage, see Assets.

prefect.asset.referenced

Emitted for each upstream asset referenced during a task execution. One event is emitted per upstream asset.

Resource

LabelDescription
prefect.resource.idAsset key (the unique identifier for the asset, for example s3://bucket/path)
prefect.resource.nameAsset name (when set via asset properties)
prefect.asset.descriptionAsset description (when set)
prefect.asset.urlAsset URL (when set)
prefect.asset.ownersJSON-encoded list of asset owners (when set)
This event has no related resources.

Payload

This event has no payload.

prefect.asset.materialization.succeeded

Emitted when a downstream asset is successfully materialized (the task that produces it completes).

Resource

Same labels as prefect.asset.referenced.
Resource ID patternRoleWhen present
Asset keyassetOne entry per upstream asset (both direct and inherited)
Materialized-by identifierasset-materialized-byWhen a materialized_by identifier was specified

Payload

User-provided materialization metadata, if any was supplied via the asset’s materialization_metadata parameter. This is an open-ended dictionary.

prefect.asset.materialization.failed

Emitted when a downstream asset fails to materialize (the task that produces it fails). Same structure as prefect.asset.materialization.succeeded.

Resource

Same labels as prefect.asset.referenced. Same as prefect.asset.materialization.succeeded.

Payload

Same as prefect.asset.materialization.succeeded.