Skip to main content
Infrastructure events cover block loading, deployment pull step execution, workspace resource transfers, and infrastructure status tracking from integration packages. For more on blocks, see Blocks.

Block events

prefect.block.{type}.loaded

Emitted when a block is loaded from the server. The {type} portion is the block type slug (for example, prefect.block.slack-webhook.loaded or prefect.block.s3-bucket.loaded).

Resource

Payload

This event has no payload.
Block subclasses can override the _event_method_called_resources() method to customize the resource and related resources for their events.

Deployment pull step events

prefect.flow-run.pull-step.executed

Emitted when a deployment pull step completes successfully during flow run infrastructure setup.

Resource

Payload

The payload contains the serialized step definition (the step’s fully qualified name and its input parameters as defined in prefect.yaml).

prefect.flow-run.pull-step.failed

Emitted when a deployment pull step fails during flow run infrastructure setup.

Resource

Same as prefect.flow-run.pull-step.executed. Same as prefect.flow-run.pull-step.executed.

Payload

Same as prefect.flow-run.pull-step.executed.

Workspace transfer events

prefect.workspace.transfer.started

Emitted when a workspace-to-workspace resource transfer begins (via prefect transfer).

Resource

This event has no related resources.

Payload

prefect.workspace.transfer.completed

Emitted when a workspace transfer completes.

Resource

Same as prefect.workspace.transfer.started. This event has no related resources.

Payload

Integration infrastructure events

The following events are emitted by Prefect integration packages to track infrastructure status changes during flow run execution. Each requires the respective integration package to be installed.

Docker events (prefect-docker)

The Docker worker emits events when container status changes during flow run execution.

prefect.docker.container.{status}

Emitted when a Docker container’s status changes. Events are chained using the follows field to track status progression.
Status variants
Resource
Related resources
Payload
This event has no payload.

prefect.docker.container.creation-failed

Emitted when a Docker container fails to be created. Same resource and related resources as prefect.docker.container.{status}.

Kubernetes events (prefect-kubernetes)

The Kubernetes observer emits events when pod phase changes are detected for pods labeled with prefect.io/flow-run-id.

prefect.kubernetes.pod.{phase}

Emitted when a Kubernetes pod transitions to a new phase. Events use deterministic IDs based on the pod UID, phase, and restart count for deduplication. Events within 5 minutes of each other are chained using the follows field.
Phase variants
Resource
Related resources
Payload
This event has no payload.

AWS ECS events (prefect-aws)

The ECS observer emits events when ECS task status changes are detected via SQS for tasks tagged with prefect.io/flow-run-id.

prefect.ecs.task.{status}

Emitted when an ECS task transitions to a new status. Events use the AWS EventBridge event UUID for deterministic tracking. Events within 5 minutes of each other are chained using the follows field.
Status variants
Resource
Related resources
Payload
This event has no payload.