Events emitted for blocks, deployment pull steps, workspace transfers, and integration infrastructure (Docker, Kubernetes, ECS).
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.
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).
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.
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
Event name
Description
prefect.kubernetes.pod.pending
Pod is in the Pending phase
prefect.kubernetes.pod.running
Pod is in the Running phase
prefect.kubernetes.pod.succeeded
Pod completed successfully
prefect.kubernetes.pod.failed
Pod terminated with an error
prefect.kubernetes.pod.unknown
Pod is in an unknown state
prefect.kubernetes.pod.evicted
Pod was evicted from the node
Resource
Label
Description
prefect.resource.id
prefect.kubernetes.pod.{uid}
prefect.resource.name
Pod name
kubernetes.namespace
Kubernetes namespace
kubernetes.reason
Eviction reason (only for evicted pods)
Related resources
Resource ID pattern
Role
When present
prefect.flow-run.{uuid}
flow-run
Always (from prefect.io/flow-run-id pod label)
prefect.deployment.{uuid}
deployment
When prefect.io/deployment-id pod label is set
prefect.flow.{uuid}
flow
When prefect.io/flow-id pod label is set
prefect.work-pool.{uuid}
work-pool
When prefect.io/work-pool-id pod label is set
Worker name
worker
When prefect.io/worker-name pod label is set (includes prefect.worker-type: kubernetes)
Payload
This event has no payload.
Show Example: Kubernetes pod transitions to Running
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
Event name
Description
prefect.ecs.task.provisioning
Task resources are being provisioned
prefect.ecs.task.pending
Task is waiting to be placed on a container instance
prefect.ecs.task.activating
Task is being activated
prefect.ecs.task.running
Task is running
prefect.ecs.task.deactivating
Task is being deactivated
prefect.ecs.task.stopping
Task is being stopped
prefect.ecs.task.deprovisioning
Task resources are being deprovisioned
prefect.ecs.task.stopped
Task has stopped
prefect.ecs.task.deleted
Task has been deleted
Resource
Label
Description
prefect.resource.id
prefect.ecs.task.{task-id}
ecs.taskArn
Full ECS task ARN
ecs.clusterArn
ECS cluster ARN (when available)
ecs.taskDefinitionArn
ECS task definition ARN (when available)
Related resources
Resource ID pattern
Role
When present
prefect.flow-run.{uuid}
flow-run
Always (from prefect.io/flow-run-id task tag)
prefect.deployment.{uuid}
deployment
When prefect.io/deployment-id task tag is set
prefect.flow.{uuid}
flow
When prefect.io/flow-id task tag is set
prefect.work-pool.{uuid}
work-pool
When prefect.io/work-pool-id task tag is set
Worker name
worker
When prefect.io/worker-name task tag is set (includes prefect.worker-type: ecs)