    def is_timeout(self) -> bool:
        """Check whether the task is timeout

        Returns
        -------
        bool
            Whether the task is timeout
        """
        return self._is_timeout
Check whether the task is timeout

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