Danny Vilela
07/28/2021, 11:43 PMSendSlackNotificationTask
task at the end of my (linear and static) flow, but it fails to run if any of its parents failed. This means the notification won’t run, so I won’t know things failed, which is probably bad.
My question: is there a way to make a task run regardless of its parent tasks’ states? I know there’s the case
option — is that a better fit here? Can case
work with a task’s state?Amanda Wee
07/28/2021, 11:45 PMDanny Vilela
07/28/2021, 11:46 PMSendSlackNotificationTask(..., state_handlers=[slack_state_handler])
, and slack_state_handler
specifically checks for the success and failed states? Referencing here: https://docs.prefect.io/core/concepts/notifications.html#state-handlersDanny Vilela
07/28/2021, 11:47 PMAmanda Wee
07/28/2021, 11:48 PMDanny Vilela
07/28/2021, 11:48 PMKevin Kho
always_run
so that it runs even if upstream tasks fail.Danny Vilela
07/29/2021, 12:54 AMterminal_state_handler
argument to Flow
— thanks @Kevin Kho!