Hi, I have a technical question.
Background of my question. I learned that in order to chain two tasks as dependent tasks, one task’s output must be the input of the other.
I have a task that depends on a task (say to remove data in a folder) that doesn’t produce any output.
How do I do it?
a
Augie Palacios
09/28/2022, 7:26 PM
you could return a bool denoting if the task was successful or not then use
conditional
to execute the task if successful
f
Frank Shen
09/28/2022, 7:45 PM
Hi Augie,
Thank you for your help.
What if the previous task throws a runtime exception?
The assumption in any workflow engine is if a previous task doesn’t error out, it’s considered successful and it will automatically trigger the next task.
And this is such a common case.
If I have to use a fake output as input, this place Flyte engine in the inferior class.