Skip to main content
Automation events track the lifecycle of automation triggers and the actions they execute. For more on automations, see Automations.

Trigger state events

prefect.automation.triggered

Emitted when an automation’s trigger condition is met and the automation enters the triggered state.

Resource

LabelDescription
prefect.resource.idprefect.automation.{uuid}
prefect.resource.nameAutomation name
prefect.postureTrigger posture: Reactive, Proactive, or Metric (for event triggers only)
Resource ID patternRoleWhen present
prefect.event.{uuid}triggering-eventWhen the trigger was fired by a specific event

Payload

FieldTypeDescription
triggering_labelsobjectLabels from the triggering event that matched the trigger’s for_each criteria
triggering_eventobject or nullFull serialized event that caused the trigger to fire

prefect.automation.resolved

Emitted when an automation’s trigger condition is no longer met and the automation returns to the resolved state (for example, a proactive trigger that previously fired because events stopped now sees events resume).

Resource

Same as prefect.automation.triggered. Same as prefect.automation.triggered.

Payload

Same as prefect.automation.triggered.

Action lifecycle events

prefect.automation.action.triggered

Emitted when an automation action begins execution.

Resource

LabelDescription
prefect.resource.idprefect.automation.{uuid}
prefect.resource.nameAutomation name
prefect.trigger-typeTrigger type (for example, event, compound, sequence, metric)
prefect.postureTrigger posture (for event triggers only)
Resource ID patternRoleWhen present
prefect.event.{uuid}automation-triggered-eventLinks to the automation.triggered or automation.resolved event that prompted this action
prefect.event.{uuid}triggering-eventThe original event that caused the automation to fire

Payload

FieldTypeDescription
action_indexintegerIndex of the action within the automation’s action list
action_typestringAction type (for example, run-deployment, send-notification, call-webhook)
invocationstringUnique ID for this action invocation

prefect.automation.action.executed

Emitted when an automation action completes successfully. Uses the follows field to link back to the corresponding action.triggered event.

Resource

Same as prefect.automation.action.triggered. Same as prefect.automation.action.triggered.

Payload

FieldTypeDescription
action_indexintegerIndex of the action
action_typestringAction type
invocationstringInvocation ID
Additional fields vary by action type and include details about the action’s result (for example, the flow run ID created by a run-deployment action).

prefect.automation.action.failed

Emitted when an automation action fails. Uses the follows field to link back to the corresponding action.triggered event.

Resource

Same as prefect.automation.action.triggered. Same as prefect.automation.action.triggered.

Payload

FieldTypeDescription
action_indexintegerIndex of the action
action_typestringAction type
invocationstringInvocation ID
reasonstringDescription of why the action failed

Prefect Cloud automation events

The following events are only available in Prefect Cloud.
Prefect Cloud emits its own automation events using the prefect-cloud namespace. These are structurally identical to the OSS events above but use different event names.

prefect-cloud.automation.triggered

Cloud equivalent of prefect.automation.triggered. Emitted when an automation enters the triggered state.

prefect-cloud.automation.resolved

Cloud equivalent of prefect.automation.resolved. Emitted when an automation returns to the resolved state.

prefect-cloud.automation.action.triggered

Cloud equivalent of prefect.automation.action.triggered.

prefect-cloud.automation.action.executed

Cloud equivalent of prefect.automation.action.executed.

prefect-cloud.automation.action.failed

Cloud equivalent of prefect.automation.action.failed.

prefect-cloud.automation.action.disabled

Emitted when an automation action is disabled (for example, after repeated failures). This event is specific to Prefect Cloud.