Process Flow - Task failure callbacks
Task starts running
Task succeeds?
No→Trigger failure callback
Callback runs (e.g., send alert)
Task ends normally
The task runs and checks if it succeeds. If it fails, the failure callback triggers to handle the failure, like sending an alert.