Colton
04/19/2024, 9:51 PMMarvin
04/19/2024, 9:51 PMprefect.yaml
that trigger deployments:
yaml
deployments:
- name: my-deployment
entrypoint: path/to/flow.py:decorated_fn
work_pool:
name: my-process-pool
triggers:
- enabled: true
match:
prefect.resource.id: my.external.resource
expect:
- external.resource.pinged
parameters:
param_1: "{{ event }}"
At deployment time, this creates a linked automation that is triggered by events matching your chosen grammar, which will then pass the event as a parameter to the deployment's flow run.
You can find more information about automations in the Prefect documentation on automations.