Milly gupta
09/23/2021, 8:24 AMAbhishek
09/23/2021, 8:45 AMgmail_notifier
etc. which can be directly used as a state_hanfler
argument in your flow definition. You can choose the type of state on which notification should be send. this can be done by passing State value to only_states
argument in gmail_notifier
See more about it here: https://docs.prefect.io/api/latest/utilities/notifications.html?#functions
You can also write your own flow state handler as per your need (In case you need to add more business logic to your flow state handler)
see this doc, which explains how to do so: https://docs.prefect.io/core/concepts/notifications.html#state-handlersMilly gupta
09/23/2021, 9:26 AMMilly gupta
09/23/2021, 9:27 AMMilly gupta
09/23/2021, 11:56 AMAbhishek
09/23/2021, 12:19 PMprefect.context
and in case you need more detail by flow run wise, you can do an API call through graphql queryMilly gupta
09/23/2021, 12:20 PMMilly gupta
09/23/2021, 12:21 PMAbhishek
09/23/2021, 12:23 PMAbhishek
09/23/2021, 12:23 PMAbhishek
09/23/2021, 12:23 PMMilly gupta
09/23/2021, 12:24 PMAbhishek
09/23/2021, 12:26 PMAbhishek
09/23/2021, 12:26 PMMilly gupta
09/23/2021, 12:28 PMAbhishek
09/23/2021, 12:29 PMAbhishek
09/23/2021, 12:32 PMfrom prefect import Client
i just shared it for referenceAbhishek
09/23/2021, 12:36 PMKevin Kho
Milly gupta
09/23/2021, 9:45 PM