Hi,
I am using Prefect 3 and are trying to use a compound event trigger to trigger a Deployment. Triggering the Deployment works, but, I can not get it to work passing parameters with data from the events to the Triggered Deployment.
See the compound trigger example here: https://docs.prefect.io/v3/automate/events/automations-triggers#define-triggers-in-prefect-yaml
When I reference
{{ event }}
I just get
None
.
{{ event }}
works fine for my other Deployments which are triggered by a single event.
So, my Deployment is triggered. But with
None
as parameter instead of the actual events triggering the Deployment.
What is the proper way to manage Parameters for compound triggers? I guess the example I referenced above from the documentation is broken, or am I'm getting it wrong?
I am using a
prefect.yaml
file for the Deployments. We are using Prefect server docker image:
prefecthq/prefect:3.0.8-python3.11
Thomas Eckestad
12/11/2024, 9:52 AM
Bumped to
prefecthq/prefect:3.1.5-python3.11
. Did not help.
Thomas Eckestad
12/11/2024, 1:13 PM
Same behavior when switching from a compound trigger to sequence.
Thomas Eckestad
12/11/2024, 1:14 PM
Or when switching from
require: "all"
to
require: "any"
for compound trigger.
v
victor dey
01/07/2025, 9:21 PM
#CL09KU1K7 I have the same issue, I used the below deployment but {{event}} payload is coming as none. Also as I have multiple events, how can I take both events payload coming through both events
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.