Hey, I'm reading about state handlers and I understand how to use them to send a slack notification if a task fails. I'm wondering how I can do something like:
task 1 - Check if network connection is healthy
task 1.1 - If network connection is healthy then go do the rest of the tasks
task 1.2 - If network connection is not healthy then reset connection and return to task 1
task 2 - Something
task 3 - Something
task 4 - Something
The issue I'm trying to workaround is I have a task running on a raspberry pi, and the network keeps giving out, and I don't want to blindly reset it each time, rather I'd prefer to check if its on, then reset it if needed.
I saw tasks can be triggered based on "all_failed", "any_failed" etc. But I guess in this scenario I only care if the one that directly precedes it failed or not.