how do you handle a task failure in a workflow? ca...
# ask-the-community
q
how do you handle a task failure in a workflow? can you just use try-catch?
y
no unfortunately not, sorry. it’s in the IDL and it’s been implemented in the backend, but the piping/syntax for it hasn’t been implemented yet in flytekit.
q
good to know, thanks!
any idea when that will be landing?
y
cc @Ketan (kumare3) if you had a timeline you were thinking of.
k
We have not had too many requests for it, but would love to get a contribution 😌
g
Quinn, can you tell us a little more about what you’re trying to accomplish at a high level? There are likely other solutions….
q
sorry for the late reply, but in general looking to be able to handle a failure in a workflow and e.g. send a discord message or something
I think my stand-in solution would be returning some sort of Result object from a task
y
there are already email notifications… does discord have an email endpoint you can hit?
q
don't think so
120 Views