https://prefect.io logo
Title
t

Tim-Oliver

03/06/2023, 10:42 AM
Hi all, I am trying to create an automation, but I don't know if it is even possible. The automation I have in mind should
cancel
all sub-flow-runs of a meta-flow-run iff the meta-flow-run is
cancelled/cancelling
. Could I achieve this with a custom-trigger?
👀 1
c

Christopher Boyd

03/06/2023, 2:15 PM
I think this might be possible specifically using tags to identify those sub-flows as sub-flows of the meta-flow - https://app.prefect.cloud/api/docs#tag/Automations/operation/create_automation_api_accounts__account_id__workspaces__workspace_id__automations__post
Directly answering your question, I’m not sure and would need to test this out
t

Tim-Oliver

03/06/2023, 3:41 PM
Ah interesting idea.