    def is_failed(self) -> bool:
        """Check whether the task is failed

        Returns
        -------
        bool
            Whether the task is failed
        """
        return self._failed
Check whether the task is failed

Returns
-------
bool
Whether the task is failed
python/aitemplate/backend/task_runner.py