def reset(self) -> None:
        """Reset runner, clear task queue and device states"""
        self._devs.reset_all()
        self._finished_tasks = set()
        self._queue = []
Reset runner, clear task queue and device states
python/aitemplate/backend/task_runner.py