is_failed: Check if task failed
This is a method of the Task class in the task module.
def is_failed(&self) -> bool