prefect.server.events.actions
The actions consumer watches for actions that have been triggered by Automations
and carries them out. Also includes the various concrete subtypes of Actions
Functions
record_action_happening
action_has_already_happened
consumer
Classes
ActionFailed
Action
An Action that may be performed when an Automation is triggered
Methods:
act
fail
logging_context
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
succeed
DoNothing
Do nothing when an Automation is triggered
Methods:
act
describe_for_cli
EmitEventAction
Methods:
act
create_event
describe_for_cli
ExternalDataAction
Base class for Actions that require data from an external source such as
the Orchestration API
Methods:
describe_for_cli
events_api_client
orchestration_client
reason_from_response
JinjaTemplateAction
Base class for Actions that use Jinja templates supplied by the user and
are rendered with a context containing data from the triggered action,
and the orchestration API.
Methods:
events_api_client
instantiate_object
orchestration_client
reason_from_response
templates_in_dictionary
validate_template
DeploymentAction
Base class for Actions that operate on Deployments and need to infer them from
events
Methods:
deployment_id_to_use
describe_for_cli
selected_deployment_requires_id
DeploymentCommandAction
Executes a command against a matching deployment
Methods:
act
command
events_api_client
orchestration_client
reason_from_response
selected_deployment_requires_id
RunDeployment
Runs the given deployment with the given parameters
Methods:
act
command
command
instantiate_object
render_parameters
templates_in_dictionary
validate_parameters
validate_template
PauseDeployment
Pauses the given Deployment
Methods:
act
command
command
ResumeDeployment
Resumes the given Deployment
Methods:
act
command
command
FlowRunAction
An action that operates on a flow run
Methods:
events_api_client
flow_run
orchestration_client
reason_from_response
FlowRunStateChangeAction
Changes the state of a flow run associated with the trigger
Methods:
act
flow_run
new_state
ChangeFlowRunState
Changes the state of a flow run associated with the trigger
Methods:
act
new_state
new_state
CancelFlowRun
Cancels a flow run associated with the trigger
Methods:
act
new_state
new_state
SuspendFlowRun
Suspends a flow run associated with the trigger
Methods:
act
new_state
new_state
ResumeFlowRun
Resumes a paused or suspended flow run associated with the trigger
Methods:
act
flow_run
CallWebhook
Call a webhook when an Automation is triggered.
Methods:
act
ensure_payload_is_a_string
"message"
key.