Yanay Sova
02/10/2025, 5:23 PMdeployments:
- <<: *common_deployment
name: create_campaign_flow
entrypoint: ./src/flows/flow_automation.py:create_campaign_flow
- <<: *common_deployment
name: trigger_backend_flow
entrypoint: ./src/flows/flow_automation.py:trigger_backend_flow
triggers:
- enabled: true
match:
prefect.resource.id: create_campaign_flow
expect:
- prefect.flow-run.Completed
parameters:
campaign_id: "{{ flow_run.parameters.campaign_id }}"
I’ve confirmed that each flow runs fine on its own, and the UI configuration for the trigger works as expected. Has anyone encountered a similar issue or have suggestions on what might be wrong with my YAML configuration?
I’ve attached a screenshot of the UI trigger configuration as well. Any help is much appreciated!Nate
02/10/2025, 5:34 PMcreate_campaign_flow
can you find a prefect.flow-run.Completed
event in the event feed that's an example of what you're trying to event on? can you paste the raw tab here?Kevin Grismore
02/10/2025, 5:46 PMmatch
, you can use match_related
to filter for events that are related to your deployment, which includes state change events that happened as part of deployment runs
match_related:
prefect.resource.role: deployment
prefect.resource.id:
- <the id of your create_campaign_flow deployment>
as in, expect the prefect.flow-run.Completed
event from any resource related to create_campaign_flowYanay Sova
02/11/2025, 11:40 AM