<@ULVA73B9P> Using automations of prefect 3 to sen...
# ask-community
m
@Marvin Using automations of prefect 3 to send Slack messages based on flow states, can I prevent the automations from sending messages about subflows created by
run_namespaced_job()
?
m
Based on the information available from Prefect 3.x documentation, there's no direct mention of automations specifically preventing notifications for subflows created by
run_namespaced_job()
. Automations in Prefect allow for customization based on flow states and events, including creating triggers based on flow state changes. However, the documentation does not explicitly describe handling subflows differently when setting up automations. To customize your automations and prevent messages about subflows, you may consider crafting custom triggers or conditions within your automations to filter out subflows. This might involve tagging your flows or setting conditions that recognize and exclude subflows from triggering actions such as Slack messages. For more detailed exploration of automations and custom triggers, you can refer to the Prefect 3.x documentation on automations: Automations in Prefect 3.x. If the current automations do not provide sufficient granularity for your use case, it might be worthwhile to follow up with the Prefect community or track future updates that could add more features in managing subflows.