def get_tasks(self, thread_name):
        """
        Args:
            thread_name (str): name of the thread to get the tasks for

        Returns:
            OrderedDict of str, Task: list of task names and log records for
                each for the given thread
        """
        if thread_name not in self.tasks_by_thread:
            with self._tasks_lock:
                self.tasks_by_thread[thread_name] = OrderedDict()

        return self.tasks_by_thread[thread_name]
Args:
            thread_name (str): name of the thread to get the tasks for

        Returns:
            OrderedDict of str, Task: list of task names and log records for
                each for the given thread