Hi! I’m facing an issue where I can’t quite get the Prefect Slack app connected to our Slack instance, but we do have our own hand-rolled Slack notifier that sends messages into a channel. I currently have a
SendSlackNotificationTask
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?
a
Amanda Wee
07/28/2021, 11:45 PM
Instead of a task, could you put it in a state handler?
Since you want to send the Slack notifications at the end of the flow, I would expect it to be a flow state handler instead.
🙌 1
d
Danny Vilela
07/28/2021, 11:48 PM
I’ll give that a shot — thanks @Amanda Wee!
k
Kevin Kho
07/29/2021, 12:40 AM
The state makes sense because normally people add some information to the Slack message, but about making a task run all the time, the answer would be in triggers and setting a trigger to
always_run
so that it runs even if upstream tasks fail.
d
Danny Vilela
07/29/2021, 12:54 AM
Gotcha! I think going down the vein of state handlers, I was looking for the
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.