Tobias Rohnstock
04/02/2024, 10:09 AMdeployment.yaml
is straightforward. But how do we remove the automation again on deployment removal?
One thought is to retrieve the automatons related to a deployment via the REST API and then remove them (via script). This information is already shown in the Prefect UI (see screenshot). However, I could not find an API call that makes this possible.
Any ideas?Chris Guidry
04/02/2024, 1:32 PMprefect.deployment.abcdef01.....
Chris Guidry
04/02/2024, 1:33 PMrun-deployment
action, for example)Tobias Rohnstock
04/03/2024, 6:09 AMLaxmi
04/10/2024, 4:57 PMdeployments:
- entrypoint: my_project/flow.py:main
name: foo
triggers:
- name: Custom Trigger
enabled: true
type: event
expect:
- prefect.flow-run.Completed
match:
prefect.resource.id: prefect.flow-run.*
actions:
- type: send-notification
block_document_id: bf277aeb-k6ab-4j47-8ee9-ib2454aa1234
subject: test
body: some message
Laxmi
04/10/2024, 5:10 PM