    def is_finished(self) -> bool:
        """Check whether the task is finished

        Returns
        -------
        bool
            Whether the task is finished
        """
        return self._finished
Check whether the task is finished

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